diff options
| author | Peter Penz <[email protected]> | 2008-07-22 17:36:52 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-07-22 17:36:52 +0000 |
| commit | 5d7de69ae6cc55dc5d6fb020e7809a74e9eeebd8 (patch) | |
| tree | c7bfdf6edc0398d0d3a14e0fda8eb55d5cec98a1 /src/dolphinmainwindow.cpp | |
| parent | b1eca66e8b4674e238e73095eb76c5faed2a9571 (diff) | |
fixed issue that the close-action for the split view has been applied to the inactive view instead of the active view
BUG: 167209
svn path=/trunk/KDE/kdebase/apps/; revision=836643
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -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 cebf34e2a..95108724e 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -488,7 +488,7 @@ void DolphinMainWindow::toggleSplitView() m_viewTab[m_tabIndex].secondaryView->show(); setActiveViewContainer(m_viewTab[m_tabIndex].secondaryView); - } else if (m_activeViewContainer == m_viewTab[m_tabIndex].primaryView) { + } else if (m_activeViewContainer == m_viewTab[m_tabIndex].secondaryView) { // remove secondary view m_viewTab[m_tabIndex].secondaryView->close(); m_viewTab[m_tabIndex].secondaryView->deleteLater(); @@ -496,7 +496,7 @@ void DolphinMainWindow::toggleSplitView() setActiveViewContainer(m_viewTab[m_tabIndex].primaryView); } else { - // The secondary view is active, hence from a users point of view + // The primary view is active and should be closed. Hence from a users point of view // the content of the secondary view should be moved to the primary view. // From an implementation point of view it is more efficient to close // the primary view and exchange the internal pointers afterwards. @@ -1154,7 +1154,7 @@ void DolphinMainWindow::updateSplitAction() { QAction* splitAction = actionCollection()->action("split_view"); if (m_viewTab[m_tabIndex].secondaryView != 0) { - if (m_activeViewContainer == m_viewTab[m_tabIndex].primaryView) { + if (m_activeViewContainer == m_viewTab[m_tabIndex].secondaryView) { splitAction->setText(i18nc("@action:intoolbar Close right view", "Close")); splitAction->setIcon(KIcon("view-right-close")); } else { |
