Uncommited changes synced
[gitlive] / NewBranch.vala
index 4342b5b..c9bff82 100644 (file)
@@ -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();
     
     }