Commits

A2K committed 49c1e52

imports fix

Comments (0)

Files changed (2)

guicomponents/searchwidget.py

         return False
     def lessThan(self, left, right):
         src = self.source_model
-        if left.column() != 4 and right.column() != 4:
-            return QtGui.QSortFilterProxyModel.lessThan(self, left, right)
+
+            #return QtGui.QSortFilterProxyModel.lessThan(self, left, right)
         ldata = unicode(src.data(left, QtCore.Qt.DisplayRole).toString())
         rdata = unicode(src.data(right, QtCore.Qt.DisplayRole).toString())
+        if left.column() != 4 and right.column() != 4:
+            return ldata < rdata
         if ldata.isdigit() and rdata.isdigit():
             return int(ldata) < int(rdata)
         if ldata.isdigit(): return False
 
 from vplayer import common
 from vplayer import queries
-from options_qt import Ui_Options
-from logininfo import LoginInfo
-from directoryscanner import DirectoryScanner
+from vplayer.logger import log
+from vplayer.options_qt import Ui_Options
+from vplayer.logininfo import LoginInfo
+from vplayer.directoryscanner import DirectoryScanner
 
 class Options(QtGui.QDialog):
     plugins = []