NewBranch.bjs
[gitlive] / NewBranch.vala
index 16ba8ca..0391249 100644 (file)
@@ -738,16 +738,15 @@ public class NewBranch : Object
         // user defined functions
         public void updateState () {
         
-        
-        if (_this.actionsel.selectedAction() == "") {
-                       // need to select an action..
+               var ticket_id = _this.ticketsel.selectedTicketId();
+               
+               if (ticket_id == "") {
                        this.el.set_sensitive(false);
                        return;
-               
-               
                }
-                       this.el.set_sensitive(true);
-                       return;
+         
+               this.el.set_sensitive(true);
+         
         }
     }