changeset 564:422351096a65 draft

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.
author Matt Corallo <matt@bluematt.me>
date Fri, 06 May 2011 04:07:11 +0200
parents d5ae4dbbe6e4
children 296705b9432a
files ui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ui.cpp
+++ b/ui.cpp
@@ -1952,6 +1952,7 @@
                 {
                     wxMessageBox(strError + "  ", _("Sending..."));
                     EndModal(false);
+                    return;
                 }
 	    }
         }