From d511d667e1d4881c353431a225275db05178bb4d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 8 Dec 2013 21:29:53 +0100 Subject: Get sure right zoom is restored... --- src/webtab/webpage.cpp | 4 ++-- src/webtab/webtab.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index e4ff22d5..0612155a 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -584,8 +584,8 @@ void WebPage::loadStarted() QString stringValue = group.readEntry(_loadingUrl.host(), QString::number(ReKonfig::defaultZoom())); int value = stringValue.toInt(); - if (value != 10) - mainFrame()->setZoomFactor(value / 10.0); // Don't allox max +1 values + // kDebug() << "ZOOM VALUE: " << value; + mainFrame()->setZoomFactor(value / 10.0); // Don't allox max +1 values } diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp index eb887304..d12d68dd 100644 --- a/src/webtab/webtab.cpp +++ b/src/webtab/webtab.cpp @@ -473,6 +473,7 @@ void WebTab::setZoom(int zoomFactor) { // This is needed because of the WebView zoomChanged signal... m_zoomFactor = zoomFactor; + // kDebug() << "NEW ZOOM FACTOR: " << zoomFactor; // set zoom factor KSharedConfig::Ptr config = KGlobal::config(); -- cgit v1.2.1