X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;fp=NewBranch.vala;h=8c392c4805f4c96da0f6ab9ebc8cd86b709f1817;hp=7bb3b9fb2179824ae0197444dc5f583d02f9f312;hb=1089915fca89477964766e342951740a0c6299f2;hpb=e7a1befa41aa9d046b8f05ee7bad4fa69943355c diff --git a/NewBranch.vala b/NewBranch.vala index 7bb3b9fb..8c392c48 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -106,21 +106,31 @@ public class NewBranch : Object return; } - var ticket_id = _this.ticketsel.selectedTicketId(); + switch(response_id) { + case 1: - if (this.repo != null) { - var bn = _this.name.el.get_text(); + + var ticket_id = _this.ticketsel.selectedTicketId(); + + if (this.repo != null) { + var bn = _this.name.el.get_text(); - var res = this.repo.setActiveTicket( - RooTicket.singleton().getById(ticket_id != "" ? ticket_id : "-1"), bn - ); - if (res) { - // start the monitoring.. - GitMonitor.gitmonitor.start(); - - } - } - + var res = this.repo.setActiveTicket( + RooTicket.singleton().getById(ticket_id != "" ? ticket_id : "-1"), bn + ); + if (res) { + // start the monitoring.. + GitMonitor.gitmonitor.start(); + + } + } + break; + case 2: // create ticket + branch + break; + + case 3: // just commit... + + break; this.running = false;