Skip to content

Commit

Permalink
Fixed Sorting Case Insensivity
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Jun 7, 2020
1 parent 93330ea commit db2781a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,8 +656,9 @@ def __init__(self, qt_app, qubes_app, dispatcher, _parent=None):
self.proxy = QSortFilterProxyModel()
self.proxy.setSourceModel(self.qubes_model)
self.proxy.setSortRole(Qt.UserRole + 1)
self.proxy.setSortCaseSensitivity(Qt.CaseInsensitive)
self.proxy.setFilterKeyColumn(2)
self.proxy.setFilterCaseSensitivity(0)
self.proxy.setFilterCaseSensitivity(Qt.CaseInsensitive)
self.proxy.layoutChanged.connect(self.save_sorting)

self.table.setModel(self.proxy)
Expand Down

0 comments on commit db2781a

Please sign in to comment.