From 8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:07:15 +0200 Subject: 3.7 --- ui/messagePopup.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ui/messagePopup.cpp') 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(); -- cgit