Source

vpackager / src / vpackager / bot.py

Diff from to

File 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)