summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-12 23:43:30 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-12 23:43:30 (GMT)
commit99b5688725343321aad1caa232cca97066681bdc (patch)
treed49c07f7fc0ad6e390fb8c9053d2309ff4c8a989
parent39bff653a5d7a9c965bb534c7dcb6303bf1c208a (diff)
Make querying for KPart supported mimetypes a bit less broken
-rw-r--r--shell/shell.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/shell.cpp b/shell/shell.cpp
index 2d7801b..bca7206 100644
--- a/shell/shell.cpp
+++ b/shell/shell.cpp
@@ -398,8 +398,7 @@ QStringList Shell::fileFormats() const
for ( ; it != itEnd; ++it )
{
KService::Ptr service = *it;
- QStringList mimeTypes = service->serviceTypes();
- mimeTypes.removeAll(basePartService);
+ QStringList mimeTypes = service->mimeTypes();
supportedPatterns += mimeTypes;
}