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.
This commit is contained in:
Peter Penz 2012-01-31 13:43:44 +01:00
parent a8cb992feb
commit 47bff403fa

View 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()