mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
fc2fab8a53
commit
701acd1ec5
@ -1180,7 +1180,7 @@ def must_use_qt():
|
|||||||
RuntimeError if using Qt is not possible, which will happen if the current
|
RuntimeError if using Qt is not possible, which will happen if the current
|
||||||
thread is not the main GUI thread. On linux, it uses a special QPA headless
|
thread is not the main GUI thread. On linux, it uses a special QPA headless
|
||||||
plugin, so that the X server does not need to be running. '''
|
plugin, so that the X server does not need to be running. '''
|
||||||
global gui_thread, _store_app
|
global gui_thread
|
||||||
ensure_app()
|
ensure_app()
|
||||||
if gui_thread is None:
|
if gui_thread is None:
|
||||||
gui_thread = QThread.currentThread()
|
gui_thread = QThread.currentThread()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user