┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-31 13:43:44 +0100
committerPeter Penz <[email protected]>2012-01-31 17:18:00 +0100
commitbf84eeedc15e73f9223b9e7c299ff836f2b4c2eb (patch)
tree1a7948ff504639b404d2f95cf3619c0d93877f12 /src
parentd4e0bc2e23858cc6de7445d40f9b85d9c04135b0 (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.
Diffstat (limited to 'src')
-rw-r--r--src/views/dolphinview.cpp7
1 files changed, 7 insertions, 0 deletions
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()