When the last image is removed from the folder, jbrout tries to reselect
images there and catches to the void.
Unless there is a commotion against this simple patch, I will merge it
to the trunk after this following Friday.
Signed-off-by: Matěj Cepl <
mc...@redhat.com>
---
jbrout/jbrout.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/jbrout/jbrout.py b/jbrout/jbrout.py
index 09a8f62..105c3c1 100755
--- a/jbrout/jbrout.py
+++ b/jbrout/jbrout.py
@@ -2004,7 +2004,8 @@ class Window(GladeApp):
if w.selected: # perhaps a new desired selection
sel = self.tbl.setSelected(w.selected)
else:
- sel = self.tbl.setSelected([self.tbl.items[w.idx]])
+ if self.tbl.items:
+ sel = self.tbl.setSelected([self.tbl.items[w.idx]])
if w.isBasketUpdate: #is basket updated ?
model = self.treeviewdb.get_model()
--
1.8.4.1.600.g3d092bf