X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/6ee09d40e38edbb686d1df62d44239d687ba50a4..177ddea85335ceb33af8cf1df07ceb2c0e336c15:/src/dolphinview.cpp diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 7339b8227..3e8070cb3 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -432,6 +432,7 @@ void DolphinView::setUrl(const KUrl& url) applyViewProperties(url); startDirLister(url); + itemView()->setFocus(); } void DolphinView::mouseReleaseEvent(QMouseEvent* event) @@ -835,6 +836,7 @@ void DolphinView::createView() this, SLOT(emitContentsMoved())); connect(view->horizontalScrollBar(), SIGNAL(valueChanged(int)), this, SLOT(emitContentsMoved())); + view->setFocus(); } QAbstractItemView* DolphinView::itemView() const @@ -911,7 +913,7 @@ void DolphinView::applyCutItemEffect() void DolphinView::updateViewportColor() { - QColor color = KColorScheme(KColorScheme::View).background(); + QColor color = KColorScheme(QPalette::Active, KColorScheme::View).background().color(); if (m_active) { emit urlChanged(url()); // Hmm, this is a hack; the url hasn't really changed. emit selectionChanged(selectedItems());