Fix #5615 - gitlive - force all roojs projects to autobranch
[gitlive] / Ticket.vala
index 9857b7f..6c5b028 100644 (file)
@@ -79,11 +79,12 @@ public class Ticket : Object
                        _this.summary.el.get_text() ,
                        _this.description.el.buffer.text 
                );
-               
+               this.el.hide();
+            this.running = false; 
                if (this.repo != null) {
                        NewBranch.singleton().show(this.repo, new Gee.ArrayList<GitMonitorQueue>(), tid);
                }
-                
+        
         
                 
         });
@@ -120,6 +121,21 @@ public class Ticket : Object
            curproj = RooTicket.singleton().getProjectByRepo(this.repo);
         }
        _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
+        if (curproj != null) {
+     
+               
+               var rt = RooTicket.singleton();
+               rt.loadProjectOptions(curproj.id);
+               
+               _this.msmodel.loadMilestones();
+               _this.primodel.loadPriorities();
+               _this.sevmodel.loadSeverities();
+               _this.clmodel.loadClassifications();    
+               _this.devmodel.loadDevelopers();        
+               
+        }
+               _this.summary.el.set_text("");
+               _this.description.el.buffer.text = ""; 
         
      
        this.el.run();