summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <peter.penz19@gmail.com>2012-01-27 20:30:27 (GMT)
committerPeter Penz <peter.penz19@gmail.com>2012-01-27 21:02:42 (GMT)
commit5d22b71437b8e978a051d8245b6140f09253639b (patch)
treee2ed73352df6fc413a7c110d7b39872aae97b085
parent349264ee404c8a6b3d4cba4ee5c67df0982e97e0 (diff)
Don't crash when opening a tab with enabled split view
BUG: 292470 FIXED-IN: 4.8.1
-rw-r--r--dolphin/src/dolphinmainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dolphin/src/dolphinmainwindow.cpp b/dolphin/src/dolphinmainwindow.cpp
index 4502e70..60fded6 100644
--- a/dolphin/src/dolphinmainwindow.cpp
+++ b/dolphin/src/dolphinmainwindow.cpp
@@ -510,12 +510,12 @@ void DolphinMainWindow::openNewTab(const KUrl& url)
actionCollection()->action("close_tab")->setEnabled(true);
- // provide a split view, if the startup settings are set this way
+ // Provide a split view, if the startup settings are set this way
if (GeneralSettings::splitView()) {
const int newTabIndex = m_viewTab.count() - 1;
createSecondaryView(newTabIndex);
- viewTab.secondaryView->setActive(true);
- viewTab.isPrimaryViewActive = false;
+ m_viewTab[newTabIndex].secondaryView->setActive(true);
+ m_viewTab[newTabIndex].isPrimaryViewActive = false;
}
if (focusWidget) {