]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Adjust zoom-slider in the statusbar if settings have been changed
authorPeter Penz <peter.penz19@gmail.com>
Tue, 31 Jan 2012 12:43:44 +0000 (13:43 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 31 Jan 2012 16:18:00 +0000 (17:18 +0100)
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

index ef39414c9f61980818b3c977a6242b30b73e350a..661ce101bbe7f4c55e9d918eb4d893a875dd6c6d 100644 (file)
@@ -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()