sync
[gitlive] / NewBranch.vala
index 583cb0e..74d09e0 100644 (file)
@@ -50,6 +50,7 @@ public class NewBranch : Object
         //listeners
         this.el.delete_event.connect( (self, event) => {
             this.el.hide();
+            this.running = false;
             return true; 
             //test  
         });
@@ -59,6 +60,7 @@ public class NewBranch : Object
                if (response_id == 0) {
                    _this.el.hide();    
                    this.running = false; 
+                       GitMonitor.gitmonitor.start();      
                        return;
                }
                 
@@ -79,7 +81,7 @@ public class NewBranch : Object
                                this.repo.createBranchNamed(bn);
                        }
             }
-        
+               GitMonitor.gitmonitor.start();
                            this.running = false; 
         
                 
@@ -102,6 +104,9 @@ public class NewBranch : Object
         if (this.running) {
                return;
        }
+       this.running  = true;
+       GitMonitor.gitmonitor.stop();
+       
         this.repo = repo;
         
        this.el.move((Gdk.Screen.width() / 2)- 250 ,0);