mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:13:27 +02:00
Fix QXcbEventReader segfault in worker process used for rendering splash screen on linux
This commit is contained in:
parent
acfff78330
commit
5a0fb8eaf9
1 changed files with 4 additions and 3 deletions
|
|
@ -135,13 +135,14 @@ def drawContents(self, painter):
|
|||
|
||||
def main():
|
||||
os.closerange(3, 256)
|
||||
from calibre.gui2 import Application
|
||||
app = Application([])
|
||||
app = QApplication([])
|
||||
s = CalibreSplashScreen()
|
||||
s.show_message.connect(s.showMessage, type=Qt.QueuedConnection)
|
||||
s.shutdown.connect(app.quit, type=Qt.QueuedConnection)
|
||||
s.show()
|
||||
Thread(target=run_loop, args=(s,)).start()
|
||||
t = Thread(target=run_loop, args=(s,))
|
||||
t.daemon = True
|
||||
t.start()
|
||||
app.exec_()
|
||||
|
||||
if isosx:
|
||||
|
|
|
|||
Loading…
Reference in a new issue