]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinview.cpp
don't clear the selection when the view gets inactive
[dolphin.git] / src / dolphinview.cpp
index 3e9b40e0b776dd3bc1d17e1760c59cd3a7ffe163..023a7380024e68945c23a05e4a8ac69b52d16c65 100644 (file)
@@ -155,7 +155,6 @@ void DolphinView::setActive(bool active)
     }
 
     m_active = active;
-    m_selectionModel->clearSelection();
 
     QColor color = KColorScheme(QPalette::Active, KColorScheme::View).background().color();
     if (active) {
@@ -176,6 +175,7 @@ void DolphinView::setActive(bool active)
     update();
 
     if (active) {
+        itemView()->setFocus();
         emit activated();
     }