[POS-commit] CVS: Kiwi/Kiwi Delegates.py,1.88,1.89

Guilherme Salgado salgado at async.com.br
Wed Feb 5 16:56:20 BRDT 2003


Update of /cvs/Kiwi/Kiwi
In directory anthem:/tmp/cvs-serv9576/Kiwi

Modified Files:
	Delegates.py 
Log Message:
- Fixed a bug that causes the ClistDelegate to select only one row when 
  restore_selection is TRUE, even when clist is in mode SELECTION_EXTENDED.


Index: Delegates.py
===================================================================
RCS file: /cvs/Kiwi/Kiwi/Delegates.py,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- Delegates.py	3 Feb 2003 19:28:32 -0000	1.88
+++ Delegates.py	5 Feb 2003 17:56:17 -0000	1.89
@@ -292,14 +292,14 @@
             self._list = [] # reset _list; this is required because 
                             # _load() does not reset it 
         self._load(list)
+        clist.set_selection_mode(old_mode)
         if restore_selection:
             for instance in old_sel:
                 # we need to find the rows because some instances may
                 # have disappeared with the clear/_load
                 row = clist.find_row_from_data(instance)
                 if row >= 0:
-                    self._select_and_focus_row(row, old_mode)
-        clist.set_selection_mode(old_mode)
+                    self._select_and_focus_row(row, clist['selection_mode'])
         clist.thaw()
 
     def clear_list(self):



More information about the POS-commit mailing list