Commit 6b93b6fd authored by Mariusz Glebocki's avatar Mariusz Glebocki Committed by Alexander Akulich
Browse files

[lib] Disable QWebView's object cache

The cache is disabled only when the "disableStyleCache" option is set.

Reviewed-by: Alexander Akulich's avatarAlexandr Akulich <>

REVIEW: 128884
parent 4c35e126
......@@ -77,6 +77,12 @@ AdiumThemeView::AdiumThemeView(QWidget *parent)
connect(jsproxy, SIGNAL(viewReady()), this, SLOT(viewLoadFinished()));
QWebSettings *ws = settings();
ws->setAttribute(QWebSettings::ZoomTextOnly, true);
KConfigGroup config(KSharedConfig::openConfig(), "KTpStyleDebug");
bool disableCache = config.readEntry("disableStyleCache", false);
if (disableCache) {
ws->setObjectCacheCapacities(0, 0, 0);
void AdiumThemeView::load(ChatType chatType) {
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