mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
94ef8919bf
commit
f9beadde75
1 changed files with 9 additions and 7 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue