aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2011-05-06 04:07:11 +0200
committerMatt Corallo <[email protected]>2011-05-06 13:32:20 +0200
commit2f62b1299f1d2d8e56ff9096017b1f3835b41642 (patch)
tree0e5ad9fe2a435edfc135765547909c19a1962810
parentFix broken build (remove declarations of GUI generate methods) (diff)
downloaddiscoin-2f62b1299f1d2d8e56ff9096017b1f3835b41642.tar.xz
discoin-2f62b1299f1d2d8e56ff9096017b1f3835b41642.zip
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.
-rw-r--r--ui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.cpp b/ui.cpp
index 5e5348911..fe63344db 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -1952,6 +1952,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
{
wxMessageBox(strError + " ", _("Sending..."));
EndModal(false);
+ return;
}
}
}