Linux: Fix a regression that broke file dialogs on systems where kdialog fails. Fixes #1897257 [Calibre 5.0 - import cover hangs](https://bugs.launchpad.net/calibre/+bug/1897257)

This commit is contained in:
Kovid Goyal 2020-09-25 16:33:15 +05:30
parent 7e19788078
commit bf5434be4e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -306,7 +306,6 @@ def linux_native_dialog(name):
ret[0] = func(window, *args, **kwargs)
except:
ret[1] = sys.exc_info()
sys.exc_clear()
while not loop.isRunning():
time.sleep(0.001) # yield so that loop starts
loop.quit()