X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Ticket.vala;h=6c5b0288bfb0b73a2cfe1f8ec7f933da70326ba6;hb=b4911e42c0727c4346a81e6a879dbc99342e0899;hp=9857b7ffa54f5301be2d3cd9a7ed9ebb762bc62f;hpb=424eebf8a96c11d28b3da871c3e1560638d3511f;p=gitlive diff --git a/Ticket.vala b/Ticket.vala index 9857b7ff..6c5b0288 100644 --- a/Ticket.vala +++ b/Ticket.vala @@ -79,11 +79,12 @@ public class Ticket : Object _this.summary.el.get_text() , _this.description.el.buffer.text ); - + this.el.hide(); + this.running = false; if (this.repo != null) { NewBranch.singleton().show(this.repo, new Gee.ArrayList(), tid); } - + }); @@ -120,6 +121,21 @@ public class Ticket : Object curproj = RooTicket.singleton().getProjectByRepo(this.repo); } _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); + if (curproj != null) { + + + var rt = RooTicket.singleton(); + rt.loadProjectOptions(curproj.id); + + _this.msmodel.loadMilestones(); + _this.primodel.loadPriorities(); + _this.sevmodel.loadSeverities(); + _this.clmodel.loadClassifications(); + _this.devmodel.loadDevelopers(); + + } + _this.summary.el.set_text(""); + _this.description.el.buffer.text = ""; this.el.run();