diff options
| author | Peter Penz <[email protected]> | 2012-01-27 21:30:27 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-01-27 22:02:42 +0100 |
| commit | 05fec8d24bcfbcb7bccc923df95776c4dc89e99d (patch) | |
| tree | a6b68c4880a74da5ef8df53729bdf3086e02689c | |
| parent | 2a812eaf7d733699c3d5e61497ca34ac2c2e2840 (diff) | |
Don't crash when opening a tab with enabled split view
BUG: 292470
FIXED-IN: 4.8.1
| -rw-r--r-- | src/dolphinmainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |
