diff options
| author | Peter Penz <[email protected]> | 2008-06-19 22:43:10 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-19 22:43:10 +0000 |
| commit | 30cb4c1ef254b10f7f42ece4d8be01eec775294b (patch) | |
| tree | 373279ad9cd24d9de31fa227ec879294dcd529ea /src/dolphinview.cpp | |
| parent | 71a6ab3c9b6fb38a3012098c2076bfec9d87a2d8 (diff) | |
Assure that the keyboard focus stays inside the view when replacing the view implementation, otherwise when having a split view the other view gets the focus and will activate itself.
BUG: 164468
svn path=/trunk/KDE/kdebase/apps/; revision=822367
Diffstat (limited to 'src/dolphinview.cpp')
| -rw-r--r-- | src/dolphinview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 7ffcbced5..0b04d0afa 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -1143,6 +1143,12 @@ void DolphinView::deleteView() { QAbstractItemView* view = itemView(); if (view != 0) { + // It's important to set the keyboard focus to the parent + // before deleting the view: Otherwise when having a split + // view the other view will get the focus and will request + // an activation (see DolphinView::eventFilter()). + setFocus(); + m_topLayout->removeWidget(view); view->close(); view->deleteLater(); |
