1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Do not duplicate the suffixes in the formats list

This commit is contained in:
Martin Tůma 2022-01-03 23:20:03 +01:00
parent 1000dd3fc1
commit c062a62014

View File

@ -171,10 +171,14 @@ QString Data::formats()
QStringList Data::filter()
{
QStringList filter;
QString last;
for (QMultiMap<QString, Parser*>::iterator it = _parsers.begin();
it != _parsers.end(); it++)
it != _parsers.end(); it++) {
if (it.key() != last)
filter << "*." + it.key();
last = it.key();
}
return filter;
}