[SCM] ktp-text-ui packaging branch, master, updated. debian/16.04.2-1-88-g820317b
Maximiliano Curia
maxy at moszumanska.debian.org
Tue Sep 12 14:10:04 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=6b93b6f
The following commit has been merged in the master branch:
commit 6b93b6fdf3bc0d095e4746815623571506f47c77
Author: Mariusz Glebocki <mglb at arccos-1.net>
Date: Sat Sep 10 23:51:41 2016 +0200
[lib] Disable QWebView's object cache
The cache is disabled only when the "disableStyleCache" option is set.
Reviewed-by: Alexandr Akulich <akulichalexander at gmail.com>
REVIEW: 128884
---
lib/adium-theme-view.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp
index 26e6d50..d1c93f4 100644
--- a/lib/adium-theme-view.cpp
+++ b/lib/adium-theme-view.cpp
@@ -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) {
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list