summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--library/mimetype.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/library/mimetype.cpp b/library/mimetype.cpp
index e2e0dab..92fe5e6 100644
--- a/library/mimetype.cpp
+++ b/library/mimetype.cpp
@@ -243,15 +243,13 @@ void MimeType::loadExtensions(const QString& filename)
// new override old (though left overrides right)
QStringList exts = (*extFor)[id];
QStringList newexts;
- if ( it != tokens.end() ) {
+ while ( it != tokens.end() ) {
exts.remove(*it);
if ( !newexts.contains(*it) )
newexts.append(*it);
- while (it != tokens.end()) {
(*typeFor)[*it] = id;
++it;
}
- }
(*extFor)[id] = newexts + exts;
}
}