Fix unselect many rows in import/export dialog for issue1374

This commit is contained in:
Cédric Krier committed 2010-01-18 23:29:34 +01:00
1 parent 8fe9466271
commit 1be2ced70b
2 files changed
+7 -5

No files matched your search

+3 -2
View File
@@ -270,8 +270,9 @@ class WinExport(object):
def sig_unsel(self, widget=None):
store, paths = self.view2.get_selection().get_selected_rows()
for i in paths:
store.remove(store.get_iter(i))
while paths:
store.remove(store.get_iter(paths[0]))
store, paths = self.view2.get_selection().get_selected_rows()
def sig_unsel_all(self, widget=None):
self.model2.clear()
+4 -3
View File
@@ -291,9 +291,10 @@ class WinImport(object):
store.get_value(iter,1))
def sig_unsel(self, widget=None):
(store, paths) = self.view2.get_selection().get_selected_rows()
for path in paths:
store.remove(store.get_iter(path))
store, paths = self.view2.get_selection().get_selected_rows()
while paths:
store.remove(store.get_iter(paths[0]))
store, paths = self.view2.get_selection().get_selected_rows()
def sig_unsel_all(self, widget=None):
self.model2.clear()