diff options
author | Matt Corallo <matt@bluematt.me> | 2011-05-06 04:07:11 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-05-06 13:32:20 +0200 |
commit | 2f62b1299f1d2d8e56ff9096017b1f3835b41642 (patch) | |
tree | 0e5ad9fe2a435edfc135765547909c19a1962810 /ui.cpp | |
parent | e5577d5541317cd4125a8406c0216b98d6818bd7 (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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1952,6 +1952,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event) { wxMessageBox(strError + " ", _("Sending...")); EndModal(false); + return; } } } |