From: Peter Penz Date: Tue, 16 Dec 2008 18:52:26 +0000 (+0000) Subject: assure that a column of the column view acts as focus proxy when being active X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/f9beadde758426f1641bd3d8c1367ee13baf6023 assure that a column of the column view acts as focus proxy when being active svn path=/trunk/KDE/kdebase/apps/; revision=897744 --- 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(); + } } }