Don't wait for focus ready message on Qt 5.12

Looks like there's no internal widget focused anymore...
This commit is contained in:
Florian Bruhin 2018-12-11 18:36:20 +01:00
parent 0aa342eae6
commit 63510c41f5

View File

@ -356,7 +356,10 @@ class QuteProc(testprocess.Process):
self._focus_ready = True
else:
raise ValueError("Invalid value {!r} for 'what'.".format(what))
if self._load_ready and self._focus_ready:
is_qt_5_12 = qtutils.version_check('5.12', compiled=False)
if ((self._load_ready and self._focus_ready) or
(self._load_ready and is_qt_5_12)):
self._load_ready = False
self._focus_ready = False
self.ready.emit()