From 788a2f1989fb8cdd48212772fe4c5bdafea38b60 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 14 May 2012 05:53:26 +0900 Subject: [PATCH] suggest searching when sorting not possible --- aqt/browser.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/aqt/browser.py b/aqt/browser.py index f02388d76..b7b0f1e6b 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -553,8 +553,17 @@ class Browser(QMainWindow): type = self.model.activeCols[idx] noSort = ("question", "answer", "template", "deck") if type in noSort: - showInfo(_("Sorting on this column is not supported. Please " - "choose another.")) + if type == "template": + showInfo(_("""\ +This column can't be sorted on, but you can search for individual card types, +such as 'card:Card 1'.""")) + elif type == "deck": + showInfo(_("""\ +This column can't be sorted on, but you can search for specific decks +by clicking on one on the left.""")) + else: + showInfo(_("Sorting on this column is not supported. Please " + "choose another.")) type = self.col.conf['sortType'] if self.col.conf['sortType'] != type: self.col.conf['sortType'] = type