From 7fa346c2a27ae2075194e8cba17d2788f1dbe4bf Mon Sep 17 00:00:00 2001 From: Houssam Salem Date: Tue, 27 May 2014 07:04:10 +1000 Subject: [PATCH] Re-check favourites status on any text change Updates the favourites button when the search text is updated programmatically as well as user input. Fixes a bug where using the recent search drop-down doesn't update the favourites button state correctly. --- aqt/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/browser.py b/aqt/browser.py index dd1dde5db..8a4efd980 100644 --- a/aqt/browser.py +++ b/aqt/browser.py @@ -1763,7 +1763,7 @@ class FavouritesLineEdit(QLineEdit): # name of current saved filter (if query matches) self.name = None self.buttonClicked.connect(self.onClicked) - self.connect(self, SIGNAL("textEdited(QString)"), self.updateButton) + self.connect(self, SIGNAL("textChanged(QString)"), self.updateButton) def resizeEvent(self, event): buttonSize = self.button.sizeHint()