aboutsummaryrefslogtreecommitdiff
path: root/ui.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-05-06 04:07:11 +0200
committerMatt Corallo <matt@bluematt.me>2011-05-06 13:32:20 +0200
commit2f62b1299f1d2d8e56ff9096017b1f3835b41642 (patch)
tree0e5ad9fe2a435edfc135765547909c19a1962810 /ui.cpp
parente5577d5541317cd4125a8406c0216b98d6818bd7 (diff)
When an error is returned, the client crashes as EndModal is called twice.
This fixes that and simply returns instead. At least GTK won't complain.
Diffstat (limited to 'ui.cpp')
-rw-r--r--ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 5e53489116..fe63344db6 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -1952,6 +1952,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
{
wxMessageBox(strError + " ", _("Sending..."));
EndModal(false);
+ return;
}
}
}