From a8aee5acd648914922df80e2bd01f5cdc250d4a3 Mon Sep 17 00:00:00 2001 From: craig Date: Sat, 25 Feb 2012 18:45:52 +0000 Subject: [PATCH] Only prompt all/untagged if we have some tagged! --- replaygain/rgdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/replaygain/rgdialog.cpp b/replaygain/rgdialog.cpp index b8fd7961e..7a8f1f051 100644 --- a/replaygain/rgdialog.cpp +++ b/replaygain/rgdialog.cpp @@ -187,7 +187,8 @@ void RgDialog::slotButtonClicked(int button) void RgDialog::startScanning() { - bool all=KMessageBox::Yes==KMessageBox::questionYesNo(this, i18n("Do you wish to scan all files, or only files without existing tags?"), QString(), + bool all=origTags.isEmpty() || + KMessageBox::Yes==KMessageBox::questionYesNo(this, i18n("Do you wish to scan all files, or only files without existing tags?"), QString(), KGuiItem(i18n("All Tracks")), KGuiItem(i18n("Untagged Tracks"))); if (!all && origTags.count()==origSongs.count()) { return;