summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
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();