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:
Peter Penz 2007-12-14 11:45:11 +00:00
parent 1e72ef9ca0
commit c436a142e8

View file

@ -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") ||