Tag editor: only write files with modified tags (#536)
This commit is contained in:
@@ -798,13 +798,16 @@ void TagEditor::runAction()
|
|||||||
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)
|
||||||
{
|
{
|
||||||
Statusbar::printf("Writing tags in \"%1%\"...", (*it)->getName());
|
if ((*it)->isModified())
|
||||||
if (!Tags::write(**it))
|
|
||||||
{
|
{
|
||||||
Statusbar::printf("Error while writing tags to \"%1%\": %2%",
|
Statusbar::printf("Writing tags in \"%1%\"...", (*it)->getName());
|
||||||
(*it)->getName(), strerror(errno));
|
if (!Tags::write(**it))
|
||||||
success = 0;
|
{
|
||||||
break;
|
Statusbar::printf("Error while writing tags to \"%1%\": %2%",
|
||||||
|
(*it)->getName(), strerror(errno));
|
||||||
|
success = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (success)
|
if (success)
|
||||||
|
|||||||
Reference in New Issue
Block a user