diff --git a/krusader/Panel/krview.cpp b/krusader/Panel/krview.cpp --- a/krusader/Panel/krview.cpp +++ b/krusader/Panel/krview.cpp @@ -1073,7 +1073,7 @@ QList vfiles; - // if we are not at the root add the ".." entery + // if we are not at the root add the ".." entry if(!_files->isRoot()) { _dummyVfile = new vfile("..", 0, "drwxrwxrwx", 0, false, false, 0, 0, "", "", 0, -1); _dummyVfile->vfile_setIcon("go-up"); @@ -1098,7 +1098,14 @@ setCurrentItem(nameToMakeCurrent()); setNameToMakeCurrent(""); } else if (!currentItem.isEmpty()) { - setCurrentItem(currentItem, currentIndex); + if (currentItem == ".." && _count > 1 && + !_quickFilterMask.isEmpty() && _quickFilterMask.isValid()) { + // In a filtered view we should never select the dummy entry if + // there are real matches. + setCurrentKrViewItem(getNext(getFirst())); + } + else + setCurrentItem(currentItem, currentIndex); } else { setCurrentKrViewItem(getFirst()); }