diff options
| author | Peter Penz <[email protected]> | 2008-12-16 18:52:26 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-16 18:52:26 +0000 |
| commit | f9beadde758426f1641bd3d8c1367ee13baf6023 (patch) | |
| tree | 0a734d28ce2ac1795d11195344698dc3e21c7488 | |
| parent | 94ef8919bf196c134706d2ed71f9fadaec68838b (diff) | |
assure that a column of the column view acts as focus proxy when being active
svn path=/trunk/KDE/kdebase/apps/; revision=897744
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 41fad2ea7..d7d8bb500 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -178,16 +178,18 @@ void DolphinColumnWidget::setDecorationSize(const QSize& size) void DolphinColumnWidget::setActive(bool active) { - if (m_active == active) { - return; + if (active && (m_view->focusProxy() != this)) { + m_view->setFocusProxy(this); } - m_active = active; + if (m_active != active) { + m_active = active; - if (active) { - activate(); - } else { - deactivate(); + if (active) { + activate(); + } else { + deactivate(); + } } } |
