mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix typo that broke conversion on non-linux platforms
This commit is contained in:
parent
5d8d9a794b
commit
cf20390366
@ -1054,8 +1054,9 @@ def must_use_qt():
|
|||||||
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, _store_app
|
||||||
if _store_app is None and QApplication.instance() is None:
|
if _store_app is None and QApplication.instance() is None:
|
||||||
|
args = sys.argv[:1]
|
||||||
if islinux or isbsd:
|
if islinux or isbsd:
|
||||||
args = sys.argv[:1] + ['-platformpluginpath', sys.extensions_location, '-platform', 'headless']
|
args += ['-platformpluginpath', sys.extensions_location, '-platform', 'headless']
|
||||||
_store_app = QApplication(args)
|
_store_app = QApplication(args)
|
||||||
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