Delete the safemode flag when closing the dialog
Change-Id: I7131849cc417155b55425eba1494992f7d07fa0b
This commit is contained in:
parent
d690066575
commit
2811e4215a
@ -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: */
|
||||
|
@ -26,6 +26,8 @@ public:
|
||||
|
||||
virtual void dispose() override;
|
||||
|
||||
virtual bool Close() override;
|
||||
|
||||
private:
|
||||
|
||||
VclPtr<Button> mpBtnContinue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user