summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNecoro <>2008-02-12 21:52:10 +0000
committerNecoro <>2008-02-12 21:52:10 +0000
commit6a5280392712c7970e2632b4eed4fb26281d3086 (patch)
tree8b1e951025de2d2cb3c1f98439d8305215404490
parent0a99d2920f65dc3d92a24d32c1fbfe135a6435c1 (diff)
downloadportato-6a5280392712c7970e2632b4eed4fb26281d3086.tar.gz
portato-6a5280392712c7970e2632b4eed4fb26281d3086.tar.bz2
portato-6a5280392712c7970e2632b4eed4fb26281d3086.zip
r751@Devoty: necoro | 2008-02-12 10:23:09 +0100
Small bug fixes
Diffstat (limited to '')
-rw-r--r--doc/TODO1
-rw-r--r--portato/gui/gtk/windows.py6
-rw-r--r--portato/gui/updater.py3
3 files changed, 8 insertions, 2 deletions
diff --git a/doc/TODO b/doc/TODO
index 2d165f3..a09d30b 100644
--- a/doc/TODO
+++ b/doc/TODO
@@ -27,6 +27,7 @@ Main Point: user preferences:
- colors and font sizes
- rotating systray icon
+- if a package has been merged, but there are still dependencies to be merged - move the dependencies up the tree (Updater)
GTK:
----
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)