NewBranch.bjs
[gitlive] / NewBranch.vala
index 0b2c809..9392f7c 100644 (file)
@@ -305,11 +305,11 @@ public class NewBranch : Object
         
             GLib.debug("Loading tickets"); 
             
-            var curproj = RooProject.getProjectByRepo(this.repo);
+            var curproj = RooProject.getProjectByRepo(_this.repo);
              _this.prmodel.loadProjects(curproj == null ? "" : curproj.id);
             
                _this.dbmodel.loadTickets(curproj == null ? "": curproj.id, tid);
-               _this.createbtn.updateState();
+               _this.branchbtn.updateState();
                
                _this.ticketsel.el.get_child().get_style_context().remove_class("warning");
                if (tid != "") { 
@@ -646,7 +646,7 @@ public class NewBranch : Object
                _this.scrolled_window.el.show();
                 
                _this.view.loadTicket(ticket.id);
-               _this.createbtn.updateState();
+               _this.branchbtn.updateState();
                
                //GLib.debug (//"Selection: %s, %s\n", (string) val1, (string) val2);
             });