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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 09 Apr 2016 16:34:05 +0200
branch
6_1_x
changeset 4930
53c81938e911
parent 4928
5830a785550f
child 4931
a349883c8188

Fixed the focus stealing issue with the QtWebEngine based HTML previewer.
(grafted from fcab21c80811a0ec7a6f2d53d93b5a4ad024fadc)

UI/Previewers/PreviewerHTML.py file | annotate | diff | comparison | revisions
diff -r 5830a785550f -r 53c81938e911 UI/Previewers/PreviewerHTML.py
--- a/UI/Previewers/PreviewerHTML.py	Sat Apr 09 16:11:44 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