DataFilter : Match exact name for XDATA series

This commit is contained in:
grauser
2016-11-21 21:13:45 +01:00
parent ee426ce9c7
commit ffff355416

View File

@@ -1483,12 +1483,12 @@ RideItem::xdataMatch(QString name, QString series, QString &mname, QString &mser
while (xi.hasNext()) {
xi.next();
if (QDir::match(name, xi.key())) {
if (name == xi.key() || QDir::match(name, xi.key())) {
// name matches
foreach(QString s, xi.value()) {
if (QDir::match(series, s)) {
if (s == series || QDir::match(series, s)) {
// series matches too
mname = xi.key();