fix bug in last commit - only hide branch if everything is ok
[gitlive] / NewBranch.vala
index 1a3a079..03e56b9 100644 (file)
@@ -59,11 +59,7 @@ public class NewBranch : Object
         this.el.response.connect( (self, response_id) =>  { 
           
                GLib.debug("got %d", (int) response_id);
-               if (response_id < 1) {
-                   _this.el.hide();    
-                   this.running = false; 
-                       return;
-               }
+               
                
                
                
@@ -83,6 +79,14 @@ public class NewBranch : Object
                        return;
                }
                
+               
+               if (response_id < 1) {
+                   _this.el.hide();    
+                   this.running = false; 
+                       return;
+               }
+               
+               
             if (this.repo != null) {
                var bn = _this.name.el.get_text();