sync
[gitlive] / NewBranch.vala
index 602922e..c55d3de 100644 (file)
@@ -75,12 +75,17 @@ public class NewBranch : Object
                
             if (this.repo != null) {
                var bn = _this.name.el.get_text();
-               if (ticket_id != "" ) {
-                               this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn);
-                       } else {
-                               this.repo.setActiveTicket( RooTicket.singleton().getById("-1"), bn);
-                       }
+        
+                       var res = this.repo.setActiveTicket(                    
+                                RooTicket.singleton().getById(ticket_id != "" ? ticket_id : "-1"), bn
+                        );
+                        if (res) {
+                               // start the monitoring..
+                                GitMonitor.gitmonitor.start();
+                                
+                        }
             }
+            
         
             this.running = false; 
         
@@ -116,7 +121,9 @@ public class NewBranch : Object
     
     
         this.el.show_all();
+            this.el.set_keep_above(true);
        _this.dbmodel.loadTickets();
+       this.el.run();
     
     }
     public class Xcls_VBox2 : Object