Emit zoomLevelChanged() if the preview gets toggled

This commit is contained in:
Peter Penz 2012-06-07 23:28:21 +02:00
parent 5c163a41c5
commit 0c206bda8e

View file

@ -259,8 +259,14 @@ void DolphinView::setPreviewsShown(bool show)
ViewProperties props(viewPropertiesUrl());
props.setPreviewsShown(show);
const int oldZoomLevel = m_view->zoomLevel();
m_view->setPreviewsShown(show);
emit previewsShownChanged(show);
const int newZoomLevel = m_view->zoomLevel();
if (newZoomLevel != oldZoomLevel) {
emit zoomLevelChanged(newZoomLevel, oldZoomLevel);
}
}
bool DolphinView::previewsShown() const