Commits

Vladimir Kolev committed a2da4c0

A try block fixes the IndexError when removing downloads from the queue.
Probably should be removed, since the downloads are already removed before the check.

Still not sure why are theese random freezes when searching...

Comments (0)

Files changed (1)

     def _remove_download(self):
         self.win.downloads.remove(self.iter)
         for i in range(len(self.win.downqueue)):
-            if self.iter == self.win.downqueue[i]['iter']:
-                self.win.downqueue.pop(i)
+            try:
+                if self.iter == self.win.downqueue[i]['iter']:
+                    self.win.downqueue.pop(i)
+            except IndexError:
+                pass
         self.iter = None
         self.win.update_downloads_count()