From 616294bc805242f29a5b9c8d44ddd1e7466505ec Mon Sep 17 00:00:00 2001 From: Emmanuel Pescosta Date: Tue, 28 May 2013 17:31:14 +0200 Subject: Bug 196035 - middle clicking on archive files in dolphin does not open them in a new tab When 'browse through archives' is enabled, open archive files like folders on middle clicking, context menu -> new tab action and context menu -> new window action. BUG: 196035 REVIEW: 110487 --- src/views/dolphinview.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/views/dolphinview.h') diff --git a/src/views/dolphinview.h b/src/views/dolphinview.h index e50dffcd8..5a70c5502 100644 --- a/src/views/dolphinview.h +++ b/src/views/dolphinview.h @@ -304,6 +304,14 @@ public: void setViewPropertiesContext(const QString& context); QString viewPropertiesContext() const; + /** + * Checks if the given \a item can be opened as folder (e.g. archives). + * This function will also adjust the \a url (e.g. change the protocol). + * @return a valid and adjusted url if the item can be opened as folder, + * otherwise return an empty url. + */ + static KUrl openItemAsFolderUrl(const KFileItem& item, const bool browseThroughArchives = true); + public slots: /** * Changes the directory to \a url. If the current directory is equal to -- cgit v1.3