From f9beadde758426f1641bd3d8c1367ee13baf6023 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 16 Dec 2008 18:52:26 +0000 Subject: [PATCH] assure that a column of the column view acts as focus proxy when being active svn path=/trunk/KDE/kdebase/apps/; revision=897744 --- src/dolphincolumnwidget.cpp | 16 +++++++++------- 1 file 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(); + } } } -- 2.47.3