summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-06-15 18:50:25 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-06-15 18:50:25 +0200
commit3b83eb0769ccb926976c0f4c2514d4de3917f054 (patch)
treef8dc01ef57b2909075de766d492f19448a9ef55d /src/application.cpp
parentno more currenttab & digit closed tabs (diff)
downloadrekonq-3b83eb0769ccb926976c0f4c2514d4de3917f054.tar.xz
This dangerous commit, 15 days to the release, removes the use of a default.css
file in rekonq and does an hack to choose the right palette for the WebView. - Why this doesn't work in QWebPage::setPalette()?? - Why using a KStyle things don't work as expected?? - so, where is really the bug, here? I have some ideas about but I currently have no time to work on.. Anyway, with this nice hack :) things seem work well for dark themes and for pages without a "proper" style (See bug 232552 about..) Many thanks to Tomas Fryda for let me noticing this.
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 94a89c90..366191f4 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -525,9 +525,7 @@ void Application::updateConfiguration()
// Applies user defined CSS to all open webpages. If there no longer is a
// user defined CSS removes it from all open webpages.
- if (ReKonfig::userCSS().isEmpty())
- defaultSettings->setUserStyleSheetUrl(KUrl(KStandardDirs::locate("appdata" , "default.css")));
- else
+ if (!ReKonfig::userCSS().isEmpty())
defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS());
// ====== load Settings on main classes