summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2012-01-31 12:43:44 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2012-01-31 12:44:57 (GMT)
commit47b4e1dfdc7f9480dd6daf2b0867376ef859b707 (patch)
tree01ea00ffd6704137e3e177e50eefc542dd0657d9
parentd03d06a92f3af9fe88ead0d50ced7de55f408c83 (diff)
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.
-rw-r--r--dolphin/src/views/dolphinview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/dolphin/src/views/dolphinview.cpp b/dolphin/src/views/dolphinview.cpp
index ef39414..661ce10 100644
--- a/dolphin/src/views/dolphinview.cpp
+++ b/dolphin/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()