summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-04-03 12:38:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-04-03 12:38:58 +0200
commit905c7e9c391f371d68fc646cd64ddc24055ed40b (patch)
tree8968eea899e9c21fa89c652d9c3949247dc3b809 /src/application.cpp
parentRekonq 0.7 first stable release, yeah!! (diff)
downloadrekonq-905c7e9c391f371d68fc646cd64ddc24055ed40b.tar.xz
This commit aims to fix a long standing rekonq bug about scrollbar (and webview in general)
theme. The right way to do it seems be using a local .css file. Letting this be in master for one week (at least) before backporting...
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/application.cpp b/src/application.cpp
index 7fcbfe86..1fe936f3 100644
--- a/src/application.cpp
+++ b/src/application.cpp
@@ -514,10 +514,11 @@ void Application::updateConfiguration()
QWebSettings::setOfflineStorageDefaultQuota(50000);
}
- // 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(ReKonfig::userCSS());
+ // Applies user/system defined CSS to all open webpages.
+ ReKonfig::userCSS().isEmpty()
+ ? defaultSettings->setUserStyleSheetUrl(KUrl(KStandardDirs::locate("appdata" , "default_rekonq.css")))
+ : defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS())
+ ;
// ====== load Settings on main classes
historyManager()->loadSettings();