┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-31 13:43:44 +0100
committerPeter Penz <[email protected]>2012-01-31 13:44:57 +0100
commit47bff403fa6b23cf69b1452c8ff019728021f5b0 (patch)
tree0bbf0aa324ce55356262661fa77d4d44584085a8
parenta8cb992febc277a4deea11178dd808cfa3b8a6b3 (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--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()