diff options
| author | Peter Penz <[email protected]> | 2012-01-27 21:30:27 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-01-27 22:01:04 +0100 |
| commit | 329f6009a802428481b5b0955f70b7fbe60a5148 (patch) | |
| tree | 4fbf52c476153e646e75971344ea5adafca6c4ff /src | |
| parent | c7d6f43a947c791c05726f6bf699fe0caf328d25 (diff) | |
Don't crash when opening a tab with enabled split view
BUG: 292470
FIXED-IN: 4.8.1
Diffstat (limited to 'src')
| -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) { |
