diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp --- a/src/dolphinviewcontainer.cpp +++ b/src/dolphinviewcontainer.cpp @@ -497,12 +497,14 @@ // Find out if the file can be opened in the view (for example, this is the // case if the file is an archive). The mime type must be known for that. item.determineMimeType(); - const QUrl& folderUrl = DolphinView::openItemAsFolderUrl(item, true); + const QUrl& folderUrl = DolphinView::openItemAsFolderUrl(item, GeneralSettings::browseThroughArchives()); if (!folderUrl.isEmpty()) { setUrl(folderUrl); - } else { - slotItemActivated(item); + return; } + + // Since the url is a file, load the directory instead + setUrl(url.adjusted(QUrl::RemoveFilename)); } void DolphinViewContainer::slotItemActivated(const KFileItem& item)