mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Fixed issue that when clicking on Open Office files that Dolphin handles the files as zip-folder. I'm not sure whether there might be a nicer way doing this, but at least for KDE 4.0 this should be sufficient.
BUG: 153981 svn path=/trunk/KDE/kdebase/apps/; revision=748399
This commit is contained in:
parent
1e72ef9ca0
commit
c436a142e8
1 changed files with 2 additions and 1 deletions
|
@ -401,8 +401,9 @@ void DolphinViewContainer::slotItemTriggered(const KFileItem& item)
|
|||
m_view->setUrl(url);
|
||||
} else if (item.isFile()) {
|
||||
// allow to browse through ZIP and tar files
|
||||
// TODO: make this configurable for Dolphin in KDE 4.1
|
||||
KMimeType::Ptr mime = item.mimeTypePtr();
|
||||
if (mime->is("application/zip")) {
|
||||
if (mime->is("application/zip") && mime->patterns().contains("*.zip")) {
|
||||
url.setProtocol("zip");
|
||||
m_view->setUrl(url);
|
||||
} else if (mime->is("application/x-tar") ||
|
||||
|
|
Loading…
Reference in a new issue