This commit is contained in:
Kovid Goyal 2023-05-04 17:04:35 +05:30
parent ceea0364a1
commit 0126be0ca4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -1070,7 +1070,7 @@ class TOCEditor(QDialog): # {{{
def workaround_macos_mouse_with_webview_bug(self): def workaround_macos_mouse_with_webview_bug(self):
# macOS is weird: https://bugs.launchpad.net/calibre/+bug/2004639 # macOS is weird: https://bugs.launchpad.net/calibre/+bug/2004639
# needed as of Qt 6.4.2 # needed as of Qt 6.4.2
d = info_dialog(self, _('Loading...'), _('Loading view, please wait...'), show_copy_button=False) d = info_dialog(self, _('Loading...'), _('Loading table of contents view, please wait...'), show_copy_button=False)
QTimer.singleShot(0, d.reject) QTimer.singleShot(0, d.reject)
d.exec() d.exec()

View File

@ -68,7 +68,7 @@ class TOCEditor(QDialog):
def workaround_macos_mouse_with_webview_bug(self): def workaround_macos_mouse_with_webview_bug(self):
# macOS is weird: https://bugs.launchpad.net/calibre/+bug/2004639 # macOS is weird: https://bugs.launchpad.net/calibre/+bug/2004639
# needed as of Qt 6.4.2 # needed as of Qt 6.4.2
d = info_dialog(self, _('Loading...'), _('Loading view, please wait...'), show_copy_button=False) d = info_dialog(self, _('Loading...'), _('Loading table of contents view, please wait...'), show_copy_button=False)
QTimer.singleShot(0, d.reject) QTimer.singleShot(0, d.reject)
d.exec() d.exec()