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 2011-05-06 04:07:11 +02:00
parent e5577d5541
commit 2f62b1299f

1
ui.cpp
View File

@ -1952,6 +1952,7 @@ void CSendDialog::OnButtonSend(wxCommandEvent& event)
{
wxMessageBox(strError + " ", _("Sending..."));
EndModal(false);
return;
}
}
}