From 2f62b1299f1d2d8e56ff9096017b1f3835b41642 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 6 May 2011 04:07:11 +0200 Subject: [PATCH] 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. --- ui.cpp | 1 + 1 file changed, 1 insertion(+) 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; } } }