diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-04-03 12:38:58 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-04-03 12:38:58 +0200 |
commit | 905c7e9c391f371d68fc646cd64ddc24055ed40b (patch) | |
tree | 8968eea899e9c21fa89c652d9c3949247dc3b809 /src/application.cpp | |
parent | Rekonq 0.7 first stable release, yeah!! (diff) | |
download | rekonq-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.cpp | 9 |
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(); |