assure that a column of the column view acts as focus proxy when being active

svn path=/trunk/KDE/kdebase/apps/; revision=897744
This commit is contained in:
Peter Penz 2008-12-16 18:52:26 +00:00
parent 94ef8919bf
commit f9beadde75

View file

@ -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();
}
}
}