mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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.
This commit is contained in:
parent
7b62094ea0
commit
7fa346c2a2
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue