NewBranch.bjs
[gitlive] / NewBranch.vala
index 70d2ecc..0391249 100644 (file)
@@ -738,8 +738,15 @@ public class NewBranch : Object
         // user defined functions
         public void updateState () {
         
-        
-        
+               var ticket_id = _this.ticketsel.selectedTicketId();
+               
+               if (ticket_id == "") {
+                       this.el.set_sensitive(false);
+                       return;
+               }
+         
+               this.el.set_sensitive(true);
+         
         }
     }