Commit 7e5ab58c authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

Make user defined custom style sheet work.

BUG: 246599
FIXED-IN: 1.4 (kwebkitpart)
parent 5799b77b
......@@ -679,7 +679,7 @@ void WebKitSettings::init( KConfig * config, bool reset )
if (!d->m_encoding.isEmpty())
QWebSettings::globalSettings()->setDefaultTextEncoding(d->m_encoding);
QWebSettings::globalSettings()->setUserStyleSheetUrl(QUrl::fromLocalFile(userStyleSheet()));
QWebSettings::globalSettings()->setUserStyleSheetUrl(QUrl::fromUserInput(userStyleSheet()));
QWebSettings::globalSettings()->setAttribute(QWebSettings::AutoLoadImages, autoLoadImages());
QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, isJavaScriptEnabled());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment