X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=c55d3de7615f7d2e55e24cde40139ed261cecb9d;hp=602922edb30568ab45f7266e8044ec4590dcf48a;hb=9e641e366549656621a3e4fc4950b62c4b395650;hpb=1f7e6b712f9ee99d621a3a67f1c0795c6106bde6 diff --git a/NewBranch.vala b/NewBranch.vala index 602922ed..c55d3de7 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -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