X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=602922edb30568ab45f7266e8044ec4590dcf48a;hp=1ec03eea151a9493a10edf82267b6a78c7a5ca1b;hb=1ca3cefd12af4ec1e3cfa3469fbcfc1afc129723;hpb=f93028e569039b48af6351e2d37f80d15d94ff5a diff --git a/NewBranch.vala b/NewBranch.vala index 1ec03eea..602922ed 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -52,7 +52,6 @@ public class NewBranch : Object //listeners this.el.delete_event.connect( (self, event) => { this.el.hide(); - this.running = false; return true; //test }); @@ -62,7 +61,6 @@ public class NewBranch : Object if (response_id == 0) { _this.el.hide(); this.running = false; - GitMonitor.gitmonitor.start(); return; } @@ -75,19 +73,18 @@ 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 != "" ) { - success = this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn); + this.repo.setActiveTicket( RooTicket.singleton().getById(ticket_id), bn); } else { - success = this.repo.createBranchNamed(bn); + this.repo.setActiveTicket( RooTicket.singleton().getById("-1"), bn); } } - this.running = false; + this.running = false; - + this.el.hide();