diff options
Diffstat (limited to 'ui/messagePopup.cpp')
-rw-r--r-- | ui/messagePopup.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/messagePopup.cpp b/ui/messagePopup.cpp index fe051eed..771df4f3 100644 --- a/ui/messagePopup.cpp +++ b/ui/messagePopup.cpp @@ -81,6 +81,9 @@ WarningDlg::WarningDlg(wxWindow* parentWindow, int activeButtons, const wxStrin m_checkBoxDontShowAgain->Hide(); } + if (~activeButtons & BUTTON_SWITCH) + m_buttonSwitch->Hide(); + if (~activeButtons & BUTTON_ABORT) m_buttonAbort->Hide(); @@ -91,8 +94,6 @@ WarningDlg::WarningDlg(wxWindow* parentWindow, int activeButtons, const wxStrin m_buttonAbort->SetFocus(); } -WarningDlg::~WarningDlg() {} - void WarningDlg::OnClose(wxCloseEvent& event) { @@ -108,6 +109,13 @@ void WarningDlg::OnIgnore(wxCommandEvent& event) } +void WarningDlg::OnSwitch(wxCommandEvent& event) +{ + dontShowAgain = m_checkBoxDontShowAgain->GetValue(); + EndModal(BUTTON_SWITCH); +} + + void WarningDlg::OnAbort(wxCommandEvent& event) { dontShowAgain = m_checkBoxDontShowAgain->GetValue(); |