From: Peter Penz Date: Fri, 27 Jan 2012 20:30:27 +0000 (+0100) Subject: Don't crash when opening a tab with enabled split view X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/329f6009a802428481b5b0955f70b7fbe60a5148?ds=sidebyside Don't crash when opening a tab with enabled split view BUG: 292470 FIXED-IN: 4.8.1 --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 4502e703f..60fded631 100644 --- a/src/dolphinmainwindow.cpp +++ b/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) {