]> cloud.milkyroute.net Git - dolphin.git/commitdiff
when changing the settings it is necessary to refresh all tabs, not only the active tab
authorPeter Penz <peter.penz19@gmail.com>
Tue, 7 Oct 2008 18:37:59 +0000 (18:37 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 7 Oct 2008 18:37:59 +0000 (18:37 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=868952

src/dolphinmainwindow.cpp

index f3b9d62281799efcd74f57909d35c818c90b382f..7186152226b9f5e009869eef13efbb94d4cf996b 100644 (file)
@@ -182,9 +182,12 @@ void DolphinMainWindow::refreshViews()
     // the secondary view
     DolphinViewContainer* activeViewContainer = m_activeViewContainer;
 
-    m_viewTab[m_tabIndex].primaryView->refresh();
-    if (m_viewTab[m_tabIndex].secondaryView != 0) {
-        m_viewTab[m_tabIndex].secondaryView->refresh();
+    const int tabCount = m_viewTab.count();
+    for (int i = 0; i < tabCount; ++i) {
+        m_viewTab[i].primaryView->refresh();
+        if (m_viewTab[i].secondaryView != 0) {
+            m_viewTab[i].secondaryView->refresh();
+        }
     }
 
     setActiveViewContainer(activeViewContainer);