Remove end dash from title

This commit is contained in:
Jonas Kvinge 2020-05-15 22:15:52 +02:00
parent 93f0230423
commit e9e0829cdc
1 changed files with 3 additions and 0 deletions

View File

@ -930,6 +930,9 @@ QString ReplaceMessage(const QString &message, const Song &song, const QString &
pos += variable_replacer.matchedLength();
}
int index_of = copy.indexOf(QRegExp(" - (>|$)"));
if (index_of >= 0) copy = copy.remove(index_of, 3);
return copy;
}