Fixed the focus stealing issue with the QtWebEngine based HTML previewer.

Sat, 09 Apr 2016 16:34:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2016 16:34:05 +0200
changeset 4929
fcab21c80811
parent 4926
f7ef43c73ae3
child 4932
127d0fe00c77

Fixed the focus stealing issue with the QtWebEngine based HTML previewer.

UI/Previewers/PreviewerHTML.py file | annotate | diff | comparison | revisions
--- a/UI/Previewers/PreviewerHTML.py	Sat Apr 09 11:37:49 2016 +0200
+++ b/UI/Previewers/PreviewerHTML.py	Sat Apr 09 16:34:05 2016 +0200
@@ -208,6 +208,8 @@
             self.previewView.page().loadFinished.connect(
                 self.__restoreScrollBarPositions)
         self.previewView.setHtml(html, baseUrl=QUrl.fromLocalFile(filePath))
+        if self.__previewedEditor:
+            self.__previewedEditor.setFocus()
     
     @pyqtSlot(str)
     def on_previewView_titleChanged(self, title):

eric ide

mercurial