diff options
| author | Sebastian Doerner <[email protected]> | 2011-01-27 21:30:45 +0000 |
|---|---|---|
| committer | Sebastian Doerner <[email protected]> | 2011-01-27 21:30:45 +0000 |
| commit | aef40807d11806f34e9941280cf8d6bdc5303488 (patch) | |
| tree | e0283b9c376426bcf3b52caaf6368e6e5a5e1058 /src | |
| parent | a2ac570198ba2b6cf0708af322aef5d0fe246ae2 (diff) | |
Fix crash when detaching a tab with "Split View Mode" setting enabled
svn path=/trunk/KDE/kdebase/apps/; revision=1217560
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 0c9a1f4e7..cd1810d37 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1126,7 +1126,9 @@ void DolphinMainWindow::openTabContextMenu(int index, const QPoint& pos) if (tab.secondaryView != 0) { const KUrl secondaryUrl = tab.secondaryView->url(); - window->toggleSplitView(); + if (window->m_viewTab[0].secondaryView == 0) { + window->toggleSplitView(); + } window->m_viewTab[0].secondaryView->setUrl(secondaryUrl); if (tab.primaryView->isActive()) { window->m_viewTab[0].primaryView->setActive(true); |
