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.
This commit is contained in:
Matt Corallo committed 2011-05-06 13:32:20 +02:00
1 parent e5577d5541
commit 2f62b1299f
1 file changed
+1
+1
View File
@@ -1952,6 +1952,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
{
wxMessageBox(strError + " ", _("Sending..."));
EndModal(false);
return;
}
}
}