Commits

Moises Henriquez committed 808d316

Added error when the "start" button is pressed with an empty queue, resized the history search box to minimal size rather than fill the entire screen

Comments (0)

Files changed (2)

src/vpackager/bot.py

 
     def StartBot(self, widget=None):
         """ Start the bot"""
+        data = self.dbase_model.GetQueue()
+        if len(data) == 0:
+            dia = guitools.message.Error(
+                text = "Job queue is empty. Please add some jobs first.",
+                parent = self)
+            if dia.run():
+                dia.destroy()
+                return
         self.RUN_BOT = True
         #self.bt_bot_start.set_sensitive(False)
         #self.bt_bot_stop.set_sensitive(True)

src/vpackager/dbviews.py

         #box.pack_end(self.exposed_widgets['filter_failed'], False, False, 2)
         #box.pack_end(self.exposed_widgets['filter_successful'], False, False, 2)
         #box.pack_end(self.exposed_widgets['filter_all'], False, False, 2)
-        box.pack_start(lb, False, False, 8)
-        searchbox = guitools.SearchBox()
-        box.pack_start(self.exposed_widgets['searchbox'], True, True, 2)
+        #box.pack_start(lb, False, False, 8)
+        #searchbox = guitools.SearchBox()
+        #box.pack_start(self.exposed_widgets['searchbox'], True, True, 2)
+        box.pack_end(self.exposed_widgets['searchbox'], False, False, 2)
+        box.pack_end(lb, False, False, 8)
 
         return box