mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #1400 from RumovZ/revert-hide-completer
Remove workaround for Qt completer bug
This commit is contained in:
commit
7a81a1c7b6
1 changed files with 0 additions and 8 deletions
|
@ -508,8 +508,6 @@ class Browser(QMainWindow):
|
|||
self.mw.progress.timer(10, self.sidebar.refresh, False)
|
||||
|
||||
def showSidebar(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
self.sidebarDockWidget.setVisible(True)
|
||||
|
||||
def focusSidebar(self) -> None:
|
||||
|
@ -893,16 +891,10 @@ class Browser(QMainWindow):
|
|||
self.table.to_last_row()
|
||||
|
||||
def onFind(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
|
||||
self.form.searchEdit.setFocus()
|
||||
self.form.searchEdit.lineEdit().selectAll()
|
||||
|
||||
def onNote(self) -> None:
|
||||
# workaround for PyQt focus bug
|
||||
self.editor.hideCompleters()
|
||||
|
||||
self.editor.web.setFocus()
|
||||
self.editor.loadNote(focusTo=0)
|
||||
|
||||
|
|
Loading…
Reference in a new issue