summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-06 18:03:41 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-06 18:03:41 +0300
commit061f5621d3f64835c376a7781af86a5e5ee1145c (patch)
tree3cc6357ec7b3ccfe2dfcce14beb5d33bf58295e3 /plugins/CrashDumper/src
parent0fc5e01bb59942e7e407d2182bd22beec8e727b0 (diff)
fixes #2716 + code cleaning
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r--plugins/CrashDumper/src/ui.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp
index 9dd4dc0cd5..80483b4fe3 100644
--- a/plugins/CrashDumper/src/ui.cpp
+++ b/plugins/CrashDumper/src/ui.cpp
@@ -169,8 +169,11 @@ class COptDialog : public CDlgBase
void COptDialog::OnCatchCrashesChange(CCtrlCheck*)
{
m_chkRepSubfolder.Enable(m_chkCatchCrashes.GetState());
- m_lblRestart.Show();
- g_plugin.bNeedRestart = true;
+
+ if (m_bInitialized) {
+ m_lblRestart.Show();
+ g_plugin.bNeedRestart = true;
+ }
}
public: