X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=NewBranch.vala;h=6b2c345542c8978998cd2991045edff8eb7ef59f;hb=29bc25b07236120c6aaa4e053bf6e78bba6c3156;hp=7746be7c2e1718a638e1037be3aabdfe854f6239;hpb=7998c0b9cb03b03cd8d0cb059f2798e6ff607a99;p=gitlive diff --git a/NewBranch.vala b/NewBranch.vala index 7746be7c..6b2c3455 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -123,7 +123,7 @@ public class NewBranch : Object this.el.set_keep_above(true); - var curproj = RooTicket.singleton().getProjectByRepo(this.repo); + var curproj = RooProject.getProjectByRepo(this.repo); _this.prmodel.loadProjects(curproj == null ? "" : curproj.id); _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid); @@ -827,7 +827,8 @@ public class NewBranch : Object //listeners this.el.activate_link.connect( (uri) => { if (uri == "refresh") { - var curproj = RooTicket.singleton().getProjectByRepo(_this.repo); + RooProject.reload(); + var curproj = RooProject.getProjectByRepo(_this.repo); _this.prmodel.loadProjects(curproj == null ? "": curproj.id); _this.dbmodel.loadTickets(curproj == null ? "": curproj.id);