Skip to content

Commit a9cb295

Browse files
committed
Upgrade VERSION to at least v1.1.0 when writing VOCALS and INSTRUMENTAL
1 parent e1d6fb7 commit a9cb295

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/song/QUSongFile.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,9 @@ bool QUSongFile::save(bool force) {
767767
}
768768

769769
// Upgrade text version if required
770-
if (customTag(AUDIO_TAG) != N_A && setMinimumVersion(QUSongVersion::SupportedVersion::v1_1_0))
771-
logSrv->add(tr("Text file \"%1\" was upgraded to v1.1.0 because it has the #AUDIO tag").arg(this->songFileInfo().fileName()), QU::Information);
770+
if (((customTag(AUDIO_TAG) != N_A) || (customTag(INSTRUMENTAL_TAG) != N_A) || (customTag(VOCALS_TAG) != N_A))
771+
&& setMinimumVersion(QUSongVersion::SupportedVersion::v1_1_0))
772+
logSrv->add(tr("Text file \"%1\" was upgraded to v1.1.0").arg(this->songFileInfo().fileName()), QU::Information);
772773

773774
QStringList tags;
774775
QSettings settings;

0 commit comments

Comments
 (0)