Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/points_list.py
diff options
context:
space:
mode:
Diffstat (limited to 'points_list.py')
-rw-r--r--points_list.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/points_list.py b/points_list.py
index fef1abd..142b615 100644
--- a/points_list.py
+++ b/points_list.py
@@ -61,9 +61,10 @@ class Data(gtk.TreeView):
def remove_selected_value(self):
path, column = self.get_cursor()
- path = path[0]
- model, iter = self.get_selection().get_selected()
- self.model.remove(iter)
+ if path is not None:
+ path = path[0]
+ model, iter = self.get_selection().get_selected()
+ self.model.remove(iter)
return path
def update_selected_value(self, data):