From 47bff403fa6b23cf69b1452c8ff019728021f5b0 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 31 Jan 2012 13:43:44 +0100 Subject: [PATCH] Adjust zoom-slider in the statusbar if settings have been changed This fixes the issue that changing the zoom-level in the settings does not update the zoom-slider in the statusbar. --- src/views/dolphinview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index ef39414c9..661ce101b 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -448,9 +448,16 @@ void DolphinView::stopLoading() void DolphinView::readSettings() { + const int oldZoomLevel = m_container->zoomLevel(); + GeneralSettings::self()->readConfig(); m_container->readSettings(); applyViewProperties(); + + const int newZoomLevel = m_container->zoomLevel(); + if (newZoomLevel != oldZoomLevel) { + emit zoomLevelChanged(newZoomLevel, oldZoomLevel); + } } void DolphinView::writeSettings() -- 2.47.3