Don't restore focus to unfocused widget
This commit is contained in:
parent
cd68d04067
commit
6f4b2e872b
@ -412,7 +412,8 @@ class WebView(QWebView):
|
|||||||
focused = QApplication.focusWidget()
|
focused = QApplication.focusWidget()
|
||||||
self.setFocus()
|
self.setFocus()
|
||||||
QApplication.postEvent(self, evt)
|
QApplication.postEvent(self, evt)
|
||||||
focused.setFocus()
|
if focused is not None:
|
||||||
|
focused.setFocus()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def on_load_started(self):
|
def on_load_started(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user