summaryrefslogtreecommitdiff
path: root/ui/messagePopup.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:07:15 +0200
commit8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395 (patch)
tree975c6e590c31e56007006a23e7b15d0245d75b08 /ui/messagePopup.cpp
parent3.6 (diff)
downloadFreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.gz
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.tar.bz2
FreeFileSync-8318453bf9d4fd50b137ff6c6fc8d1fd22aa6395.zip
3.7
Diffstat (limited to 'ui/messagePopup.cpp')
-rw-r--r--ui/messagePopup.cpp12
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();
bgstack15