summaryrefslogtreecommitdiff
path: root/portato/gui/gtk
diff options
context:
space:
mode:
authorNecoro <>2008-02-12 21:52:10 +0000
committerNecoro <>2008-02-12 21:52:10 +0000
commit6a5280392712c7970e2632b4eed4fb26281d3086 (patch)
tree8b1e951025de2d2cb3c1f98439d8305215404490 /portato/gui/gtk
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--portato/gui/gtk/windows.py6
1 files changed, 5 insertions, 1 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))