diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-04-14 11:36:47 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-04-14 11:36:47 +0200 |
commit | e8e18f0b164c78c2ea410cad0e1e1033b1b24ab2 (patch) | |
tree | eb8875bf8b852c250bc994e4662892819be1bd1b /src/mainwindow.cpp | |
parent | Stupid commit :) (diff) | |
download | rekonq-e8e18f0b164c78c2ea410cad0e1e1033b1b24ab2.tar.xz |
Set default background to white
BUG:232552
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 56b69cc6..abee13d5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -599,7 +599,10 @@ void MainWindow::updateConfiguration() // Applies user defined CSS to all open webpages. If there no longer is a // user defined CSS removes it from all open webpages. - defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS()); + if(ReKonfig::userCSS().isEmpty()) + defaultSettings->setUserStyleSheetUrl( KUrl(KStandardDirs::locate("appdata" , "default.css")) ); + else + defaultSettings->setUserStyleSheetUrl(ReKonfig::userCSS()); // ====== load Settings on main classes Application::historyManager()->loadSettings(); @@ -842,8 +845,8 @@ void MainWindow::highlightAll() if(m_findBar->highlightAllState() && !m_findBar->isHidden()) { - if (m_findBar->matchCase()) - options |= QWebPage::FindCaseSensitively; + if (m_findBar->matchCase()) + options |= QWebPage::FindCaseSensitively; currentTab()->view()->findText(m_lastSearch, options); } |