Commit b1a693c7 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Migrate file name filter configuration to include *.dsf.

parent 8399af6f
......@@ -25,6 +25,7 @@
*/
#include "fileconfig.h"
#include <QCoreApplication>
int FileConfig::s_index = -1;
......@@ -157,6 +158,15 @@ void FileConfig::readFromConfig(ISettings* config)
m_formatFromFilenameItems += QString::fromLatin1(*sl);
}
}
if (ConfigStore::getConfigVersion() < 2) {
// Reset file name filter if it is set to "All Supported Files" in order
// to introduce newly supported file formats (e.g. *.dsf) when the
// configuration version is increased.
if (m_nameFilter.startsWith(QCoreApplication::translate(
"Kid3Application", "All Supported Files"))) {
m_nameFilter.clear();
}
}
}
void FileConfig::setNameFilter(const QString& nameFilter)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment