UI/BrowserSortFilterProxyModel.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 2525
8b507a9a2d40
parent 3034
7ce719013078
child 3145
a9de05d4a22f
diff -r 0a02c433f52d -r 5883ce99ee12 UI/BrowserSortFilterProxyModel.py
--- a/UI/BrowserSortFilterProxyModel.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/UI/BrowserSortFilterProxyModel.py	Sun Nov 03 15:58:22 2013 +0100
@@ -51,11 +51,11 @@
         @param right index of right item (QModelIndex)
         @return true, if left is less than right (boolean)
         """
-        l = left.model() and left.model().item(left) or None
-        r = right.model() and right.model().item(right) or None
+        le = left.model() and left.model().item(left) or None
+        ri = right.model() and right.model().item(right) or None
         
-        if l and r:
-            return l.lessThan(r, self.__sortColumn, self.__sortOrder)
+        if le and ri:
+            return le.lessThan(ri, self.__sortColumn, self.__sortOrder)
         
         return False
         

eric ide

mercurial