mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +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
|
@ -401,8 +401,9 @@ void DolphinViewContainer::slotItemTriggered(const KFileItem& item)
|
||||||
m_view->setUrl(url);
|
m_view->setUrl(url);
|
||||||
} else if (item.isFile()) {
|
} else if (item.isFile()) {
|
||||||
// allow to browse through ZIP and tar files
|
// allow to browse through ZIP and tar files
|
||||||
|
// TODO: make this configurable for Dolphin in KDE 4.1
|
||||||
KMimeType::Ptr mime = item.mimeTypePtr();
|
KMimeType::Ptr mime = item.mimeTypePtr();
|
||||||
if (mime->is("application/zip")) {
|
if (mime->is("application/zip") && mime->patterns().contains("*.zip")) {
|
||||||
url.setProtocol("zip");
|
url.setProtocol("zip");
|
||||||
m_view->setUrl(url);
|
m_view->setUrl(url);
|
||||||
} else if (mime->is("application/x-tar") ||
|
} else if (mime->is("application/x-tar") ||
|
||||||
|
|
Loading…
Reference in a new issue