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:
parent
1000dd3fc1
commit
c062a62014
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user