]> cloud.milkyroute.net Git - dolphin.git/commitdiff
assure that the zoom level is updated when refreshing the view
authorPeter Penz <peter.penz19@gmail.com>
Sun, 26 Oct 2008 13:02:40 +0000 (13:02 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 26 Oct 2008 13:02:40 +0000 (13:02 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=876079

src/dolphinview.cpp

index cd9b67bb7725a1e4857c79f3f47e4c8167c426a2..1300d99378bddc7e9817b221109bdf1748d6dbe0 100644 (file)
@@ -439,6 +439,7 @@ void DolphinView::reload()
 void DolphinView::refresh()
 {
     const bool oldActivationState = m_active;
+    const int oldZoomLevel = m_controller->zoomLevel();
     m_active = true;
 
     createView();
@@ -446,6 +447,7 @@ void DolphinView::refresh()
     reload();
 
     setActive(oldActivationState);
+    updateZoomLevel(oldZoomLevel);
 }
 
 void DolphinView::updateView(const KUrl& url, const KUrl& rootUrl)