summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/view/viewfrm.cxx3
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