sync
[gitlive] / NewBranch.vala
index 74d09e0..b3bc91d 100644 (file)
@@ -73,16 +73,17 @@ public class NewBranch : Object
                // -- initial load can check the contents of the ticket files on first scan.
                var ticket_id = _this.ticketsel.selectedTicketId();
                
+               var success = true;
             if (this.repo != null) {
                var bn = _this.name.el.get_text();
                if (ticket_id != "" ) {
-                               this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn);
+                               success = this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn);
                        } else {
-                               this.repo.createBranchNamed(bn);
+                               success = this.repo.createBranchNamed(bn);
                        }
             }
                GitMonitor.gitmonitor.start();
-                           this.running = false; 
+            this.running = false;