Commit 3ef4afcd authored by Urs Fleisch's avatar Urs Fleisch
Browse files

do not return null string in getReplacement() if code found but value empty,...

do not return null string in getReplacement() if code found but value empty, this caused %c, %y, ... being replaced by %c, %y, ... instead of empty when comment, year, ... field was empty
parent be42f75b
......@@ -579,6 +579,10 @@ QString FrameFormatReplacer::getReplacement(const QString& code) const
FrameCollection::iterator it = m_frames.findByName(name);
if (it != m_frames.end()) {
result = it->getValue();
if (result.isNull()) {
// code was found, but value is empty
result = "";
}
}
if (name.QCM_toLower() == "track") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment