summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/gtk/windows.py6
-rw-r--r--portato/gui/updater.py3
2 files changed, 7 insertions, 2 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py
index ed31a66..bfc5ede 100644
--- a/portato/gui/gtk/windows.py
+++ b/portato/gui/gtk/windows.py
@@ -1184,7 +1184,11 @@ class MainWindow (Window):
def save_selection ():
def _save(list):
- return list.get_model().get_string_from_iter(list.get_selection().get_selected()[1])
+ iter = list.get_selection().get_selected()
+ if iter:
+ return list.get_model().get_string_from_iter(iter[1])
+ else:
+ return "0"
return map(_save, (self.catList, self.pkgList))
diff --git a/portato/gui/updater.py b/portato/gui/updater.py
index fb80118..c21f547 100644
--- a/portato/gui/updater.py
+++ b/portato/gui/updater.py
@@ -14,6 +14,7 @@ from __future__ import absolute_import
from ..backend import system
+from gettext import lgettext as _
import threading, subprocess, time
from ..helper import debug, error
@@ -107,6 +108,6 @@ q
return
try:
- self.queue.remove(self.iterators[cpv])
+ self.queue.remove_with_children(self.iterators[cpv])
except KeyError:
debug("'%s' should be removed, but is not in queue.", cpv)