WebBrowser/WebBrowserWindow.py

changeset 4990
2bca10fcfe80
parent 4979
7ac0959842f9
child 4993
ebb8eaa326ba
diff -r fc0c2381b388 -r 2bca10fcfe80 WebBrowser/WebBrowserWindow.py
--- a/WebBrowser/WebBrowserWindow.py	Tue May 24 18:24:38 2016 +0200
+++ b/WebBrowser/WebBrowserWindow.py	Fri Jun 03 19:59:32 2016 +0200
@@ -19,7 +19,8 @@
 
 from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QByteArray, QSize, QTimer, \
     QUrl, QTextCodec, QProcess, QEvent
-from PyQt5.QtGui import QDesktopServices, QKeySequence, QFont, QFontMetrics
+from PyQt5.QtGui import QDesktopServices, QKeySequence, QFont, QFontMetrics, \
+    QPalette
 from PyQt5.QtWidgets import QWidget, QVBoxLayout, QSizePolicy, QDockWidget, \
     QComboBox, QLabel, QSplitter, QMenu, QToolButton, QLineEdit, \
     QApplication, QWhatsThis, QDialog, QHBoxLayout, QProgressBar, QAction, \
@@ -3987,12 +3988,11 @@
         
         @param styleSheetFile name of the user style sheet file (string)
         """
-        userStyle = \
-            self.adBlockManager().elementHidingRules().replace('"', '\\"')
+        name = "_eric_userstylesheet"
+        userStyle = ""
         
         userStyle += WebBrowserTools.readAllFileContents(styleSheetFile)\
             .replace("\n", "")
-        name = "_eric_userstylesheet"
         
         oldScript = self.webProfile().scripts().findScript(name)
         if not oldScript.isNull():

eric ide

mercurial