-rw-r--r-- | library/mimetype.cpp | 4 |
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 @@ -245,3 +245,3 @@ void MimeType::loadExtensions(const QString& filename) QStringList newexts; - if ( it != tokens.end() ) { + while ( it != tokens.end() ) { exts.remove(*it); @@ -249,3 +249,2 @@ void MimeType::loadExtensions(const QString& filename) newexts.append(*it); - while (it != tokens.end()) { (*typeFor)[*it] = id; @@ -253,3 +252,2 @@ void MimeType::loadExtensions(const QString& filename) } - } (*extFor)[id] = newexts + exts; |