X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=NewBranch.vala;h=c9bff826a4caa8360aae952afaf7682bb1e837ae;hp=4342b5b28565e0ad0f87b3f4b7acc0b4ced174dc;hb=ce5337e4ad3400605415fb497dbbced99ed35860;hpb=35449c3a6ed4c08cf09abae2ab8a582acf7080c3 diff --git a/NewBranch.vala b/NewBranch.vala index 4342b5b2..c9bff826 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -125,6 +125,12 @@ public class NewBranch : Object _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid); + if (tid != "") { + var name = RooTicket.singleton().usernameLocal(); + var ticket = RooTicket.singleton().getById(tid); + _this.name.el.set_text("wip_%s_T%s_%s".printf(name,ticket.id, ticket.summaryToBranchName())); + } + this.el.run(); }