Commit 6b09d60d authored by Scott Wheeler's avatar Scott Wheeler

Don't show the confirmation dialog if there are no files to rename.

svn path=/trunk/kdemultimedia/juk/; revision=359737
parent 905c3b19
......@@ -714,7 +714,7 @@ void FileRenamer::rename(const PlaylistItemList &items)
}
}
if(ConfirmationDialog(map).exec() != QDialog::Accepted)
if(itemMap.isEmpty() || ConfirmationDialog(map).exec() != QDialog::Accepted)
return;
KApplication::setOverrideCursor(Qt::waitCursor);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment