Tag editor: only write files with modified tags (#536)
This commit is contained in:
@@ -797,6 +797,8 @@ void TagEditor::runAction()
|
|||||||
bool success = 1;
|
bool success = 1;
|
||||||
Statusbar::print("Writing changes...");
|
Statusbar::print("Writing changes...");
|
||||||
for (auto it = EditedSongs.begin(); it != EditedSongs.end(); ++it)
|
for (auto it = EditedSongs.begin(); it != EditedSongs.end(); ++it)
|
||||||
|
{
|
||||||
|
if ((*it)->isModified())
|
||||||
{
|
{
|
||||||
Statusbar::printf("Writing tags in \"%1%\"...", (*it)->getName());
|
Statusbar::printf("Writing tags in \"%1%\"...", (*it)->getName());
|
||||||
if (!Tags::write(**it))
|
if (!Tags::write(**it))
|
||||||
@@ -807,6 +809,7 @@ void TagEditor::runAction()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (success)
|
if (success)
|
||||||
{
|
{
|
||||||
Statusbar::print("Tags updated");
|
Statusbar::print("Tags updated");
|
||||||
|
|||||||
Reference in New Issue
Block a user