summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 63f4c58d9..b2f136838 100755
--- a/gui.py
+++ b/gui.py
@@ -90,6 +90,9 @@ def scrollToIdleHandler((view, store, iddict)):
return
selection = view.get_selection()
+ if not selection:
+ return
+
model, iter = selection.get_selected()
if not iter:
return