Delete the safemode flag when closing the dialog

Change-Id: I7131849cc417155b55425eba1494992f7d07fa0b
This commit is contained in:
Samuel Mehrbrodt 2016-10-12 11:18:08 +02:00
parent d690066575
commit 2811e4215a
2 changed files with 10 additions and 1 deletions

View File

@ -46,6 +46,14 @@ void SafeModeDialog::dispose()
Dialog::dispose();
}
bool SafeModeDialog::Close()
{
// Remove the safe mode flag before exiting this dialog
sfx2::SafeMode::removeFlag();
return Dialog::Close();
}
IMPL_LINK(SafeModeDialog, BtnHdl, Button*, pBtn, void)
{
if (pBtn == mpBtnContinue.get())
@ -60,7 +68,6 @@ IMPL_LINK(SafeModeDialog, BtnHdl, Button*, pBtn, void)
{
Close();
}
sfx2::SafeMode::removeFlag();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@ -26,6 +26,8 @@ public:
virtual void dispose() override;
virtual bool Close() override;
private:
VclPtr<Button> mpBtnContinue;