mirror of
https://github.com/ankitects/anki.git
synced 2026-01-15 06:49:03 -05:00
fix preview button shortcut
Qt 'helpfully' erases any existing shortcuts when .setText() is called, and as PyQt's generated forms set the text after the shortcut is set, it gets lost. https://anki.tenderapp.com/discussions/ankidesktop/38038-does-ctrlshiftp-doesnt-trigger-preview-in-browse
This commit is contained in:
parent
552839fdce
commit
5e4f8673c4
1 changed files with 1 additions and 0 deletions
|
|
@ -597,6 +597,7 @@ class Browser(QMainWindow):
|
|||
f.previewButton.setToolTip(
|
||||
_("Preview Selected Card (%s)") % shortcut(_("Ctrl+Shift+P"))
|
||||
)
|
||||
f.previewButton.setShortcut("Ctrl+Shift+P")
|
||||
|
||||
f.filter.clicked.connect(self.onFilterButton)
|
||||
# edit
|
||||
|
|
|
|||
Loading…
Reference in a new issue