mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34: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 Data::filter()
|
||||||
{
|
{
|
||||||
QStringList filter;
|
QStringList filter;
|
||||||
|
QString last;
|
||||||
|
|
||||||
for (QMultiMap<QString, Parser*>::iterator it = _parsers.begin();
|
for (QMultiMap<QString, Parser*>::iterator it = _parsers.begin();
|
||||||
it != _parsers.end(); it++)
|
it != _parsers.end(); it++) {
|
||||||
|
if (it.key() != last)
|
||||||
filter << "*." + it.key();
|
filter << "*." + it.key();
|
||||||
|
last = it.key();
|
||||||
|
}
|
||||||
|
|
||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user