summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMikhail Voytenko <mav@openoffice.org>2010-06-10 19:17:08 +0200
committerMikhail Voytenko <mav@openoffice.org>2010-06-10 19:17:08 +0200
commit09733434899d23c04e60d4caa18765b4bed87f3a (patch)
treebff12dbd6dc1eb72aee32133c90c61f78a1dfb73 /sfx2
parentc8d682206b05ba641028f75388f8d21a68e02e25 (diff)
tl78: #i110383# fix reload functionality
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index a80741df13a6..47f0926d00b6 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;
}