diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-19 11:22:17 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-02-19 11:22:17 +0100 |
commit | 0512e2eed23fcbf29ce4576d76fe76f18d679d05 (patch) | |
tree | 7f67244f57e39aa4f86f94e14725079765ac8ff0 | |
parent | 350a0791efb2d2b3ed5e32e15a079916b35beaca (diff) |
autorecovery: SwitchToViewShell_Impl: do not use the doc's suspend, but only the view's PrepareClose (preventing the 'do you want to save' question this way). Strange enough, I'm pretty sure I already did this patch in the past - but I can find a respective change set in the log ...
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index d469366a48ad..7afeb623a780 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -2205,8 +2205,7 @@ sal_Bool SfxViewFrame::SwitchToViewShell_Impl if ( pOldSh ) { // ask wether it can be closed - Reference< XController > xController( pOldSh->GetController(), UNO_SET_THROW ); - if ( !xController->suspend( sal_True ) ) + if ( !pOldSh->PrepareClose( TRUE ) ) return sal_False; // remove sub shells from Dispatcher before switching to new ViewShell |