]> cloud.milkyroute.net Git - dolphin.git/commitdiff
assure that a column of the column view acts as focus proxy when being active
authorPeter Penz <peter.penz19@gmail.com>
Tue, 16 Dec 2008 18:52:26 +0000 (18:52 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 16 Dec 2008 18:52:26 +0000 (18:52 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=897744

src/dolphincolumnwidget.cpp

index 41fad2ea7148c95422e99cba95ba2f7956c90382..d7d8bb500a0f7959950c0936aa70c864734c5a93 100644 (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();
+        }
     }
 }