summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/SafeModeDialog.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/dialog/SafeModeDialog.cxx b/svx/source/dialog/SafeModeDialog.cxx
index 1da58a00d44b..53d99119e51d 100644
--- a/svx/source/dialog/SafeModeDialog.cxx
+++ b/svx/source/dialog/SafeModeDialog.cxx
@@ -71,6 +71,9 @@ bool SafeModeDialog::Close()
void SafeModeDialog::terminateOffice()
{
+ // We are not hitting Close() in this case, need to manually remove the flag
+ sfx2::SafeMode::removeFlag();
+
uno::Reference<frame::XDesktop2> xDesktop = frame::Desktop::create( comphelper::getProcessComponentContext() );
xDesktop->terminate();
}