X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=NewBranch.vala;h=59e8bbcea36286747eea7263d9eb978cfd0f6c0b;hb=2baaa6470dcda5871ccc060a9cc17fd4dc68fc83;hp=d4b0e093758e6346035300637d843a152e5eb281;hpb=744f9969b649abfff9d6bae0bff37b2b5911189a;p=gitlive diff --git a/NewBranch.vala b/NewBranch.vala index d4b0e093..59e8bbce 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -1101,7 +1101,39 @@ public class NewBranch : Object // user defined functions public void load_data () { + + + + Timeout.add_seconds(1, () => { + + RooProject? curproj = null; + if (_this.repo != null) { + curproj = RooProject.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.spinner.el.stop(); + //_this.spinner.el.hide(); + _this.table.el.show(); + //_this.summary.el.grab_focus(); + + return false; + }); } } public class Xcls_table : Object @@ -2209,6 +2241,9 @@ public class NewBranch : Object } // user defined functions + public void load_data () { + + } } public class Xcls_Table52 : Object {