diff options
author | Mikhail Voytenko <mav@openoffice.org> | 2010-06-10 19:17:08 +0200 |
---|---|---|
committer | Mikhail Voytenko <mav@openoffice.org> | 2010-06-10 19:17:08 +0200 |
commit | 6c9c1c1e1d1bca46827b4c59c72c638267689c96 (patch) | |
tree | ed466fc9d07dd2c267a3570a523d155ced054902 /sfx2 | |
parent | ed651dab06fe521b1eb0c9d75c1307d3a875006a (diff) |
tl78: #i110383# fix reload functionality
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index de94b081df..59ff38b7ae 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -382,12 +382,17 @@ void SfxViewFrame::ExecReload_Impl( SfxRequest& rReq ) // Speichern und Readonly Reloaden if( pSh->IsModified() ) { - if ( !pSh->PrepareClose() ) + if ( pSh->PrepareClose() ) + { + // the storing could let the medium be changed + pMed = pSh->GetMedium(); + bNeedsReload = sal_True; + } + else { rReq.SetReturnValue( SfxBoolItem( rReq.GetSlot(), sal_False ) ); return; } - else bNeedsReload = sal_True; } nOpenMode = SFX_STREAM_READONLY; } |