Skip to content

Commit

Permalink
1.2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noembryo committed Aug 24, 2019
1 parent 5e21bb0 commit cf49170
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@


__author__ = "noEmbryo"
__version__ = "1.2.1.0"
__version__ = "1.2.2.0"


def _(text): # for future gettext support
Expand Down Expand Up @@ -710,7 +710,7 @@ def on_column_right_clicked(self, pos):
if name == _("Title"):
menu = QMenu(self)

action = QAction(_('Ignore "A" && "The"'), menu)
action = QAction(_("Ignore english articles"), menu)
action.setCheckable(True)
action.setChecked(self.alt_title_sort)
action.triggered.connect(self.toggle_title_sort)
Expand Down
6 changes: 4 additions & 2 deletions secondary.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ class XTableWidgetTitleItem(QTableWidgetItem):

def __lt__(self, value):
t1 = self.data(Qt.DisplayRole).lower()
t1 = t1[2:] if t1.startswith("a ") else t1[4:] if t1.startswith("the ") else t1
t1 = (t1[2:] if t1.startswith("a ") else t1[4:] if t1.startswith("the ") else
t1[3:] if t1.startswith("an ") else t1)

t2 = value.data(Qt.DisplayRole).lower()
t2 = t2[2:] if t2.startswith("a ") else t2[4:] if t2.startswith("the ") else t2
t2 = (t2[2:] if t2.startswith("a ") else t2[4:] if t2.startswith("the ") else
t2[3:] if t2.startswith("an ") else t2)

return t1 < t2

Expand Down

0 comments on commit cf49170

Please sign in to comment.