aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2010-12-20 10:36:48 -0500
committerGavin Andresen <gavinandresen@gmail.com>2010-12-20 10:36:48 -0500
commit86c2bdfd5d7773e94dda258c52d2dd056fcfb261 (patch)
tree0f1472c85d403a3a27354f6623800adfc9b69b6f /ui.cpp
parent5568d82c26d59aa90df22a6ac0900a93a5731aaf (diff)
EndModal fix for Mac from piotrp
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui.cpp b/ui.cpp
index 1cb922fad6..17ad630832 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -1466,8 +1466,7 @@ CTxDetailsDialog::CTxDetailsDialog(wxWindow* parent, CWalletTx wtx) : CTxDetails
void CTxDetailsDialog::OnButtonOK(wxCommandEvent& event)
{
- Close();
- //Destroy();
+ EndModal(false);
}
@@ -1736,12 +1735,12 @@ void COptionsDialog::OnKillFocusProxy(wxFocusEvent& event)
void COptionsDialog::OnButtonOK(wxCommandEvent& event)
{
OnButtonApply(event);
- Close();
+ EndModal(false);
}
void COptionsDialog::OnButtonCancel(wxCommandEvent& event)
{
- Close();
+ EndModal(false);
}
void COptionsDialog::OnButtonApply(wxCommandEvent& event)
@@ -1828,7 +1827,7 @@ CAboutDialog::CAboutDialog(wxWindow* parent) : CAboutDialogBase(parent)
void CAboutDialog::OnButtonOK(wxCommandEvent& event)
{
- Close();
+ EndModal(false);
}