From 6a8f41f0bb589f45c41505ea0d55841b6166df33 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sat, 10 Nov 2012 18:27:49 +1100 Subject: [PATCH] Log a warning when failing to save tags to a local file. --- src/ui/trackselectiondialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/trackselectiondialog.cpp b/src/ui/trackselectiondialog.cpp index 42e57d940..0fcde0502 100644 --- a/src/ui/trackselectiondialog.cpp +++ b/src/ui/trackselectiondialog.cpp @@ -245,7 +245,9 @@ void TrackSelectionDialog::SaveData(const QList& data) { copy.set_track(new_metadata.track()); copy.set_year(new_metadata.year()); - TagReaderClient::Instance()->SaveFileBlocking(copy.url().toLocalFile(), copy); + if (!TagReaderClient::Instance()->SaveFileBlocking(copy.url().toLocalFile(), copy)) { + qLog(Warning) << "Failed to write new auto-tags to" << copy.url().toLocalFile(); + } } }