aboutsummaryrefslogtreecommitdiff
path: root/lib/decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/decoder.cpp')
-rw-r--r--lib/decoder.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/decoder.cpp b/lib/decoder.cpp
index 4b940520d..db10678cd 100644
--- a/lib/decoder.cpp
+++ b/lib/decoder.cpp
@@ -173,11 +173,10 @@ DecoderFactory *Decoder::findByContentType(const QString& type)
{
if (!blacklist.contains(files.at(i).section('/',-1)))
{
- QStringList types = factories->at(i)->contentTypes();
+ QStringList types = factories->at(i)->contentType().split(";");
for(int j=0; j<types.size(); ++j)
{
- qDebug(qPrintable(types[j]+" "+type));
- if(type == types[j])
+ if(type == types[j] && !types[j].isEmpty())
return factories->at(i);
}
}