Commit f29cb326 authored by Scott Wheeler's avatar Scott Wheeler

Show "No Change" rather than the "new" file name when the source and destination

file are the same in the renamer confirmation dialog.

svn path=/trunk/kdemultimedia/juk/; revision=294289
parent bb359778
......@@ -23,6 +23,8 @@
#include <qheader.h>
#include <qlabel.h>
#include <qvbox.h>
#include <qpainter.h>
#include <qsimplerichtext.h>
class FileRenamer::ConfirmationDialog : public KDialogBase
......@@ -50,7 +52,10 @@ public:
QMap<QString, QString>::ConstIterator it = files.begin();
for(; it != files.end(); ++it) {
KListViewItem *i = new KListViewItem(lv, it.key(),;
KListViewItem *i = it.key() ==
? new KListViewItem(lv, it.key(),
: new KListViewItem(lv, it.key(), i18n("No Change"));
lvHeight += i->height();
......@@ -83,6 +83,8 @@ private:
Tag(const QString &file);
Tag(const QString &fileName, TagLib::File *file);
// TODO -- remove m_info and prefer the one in the FileHandle
QFileInfo m_info;
QString m_fileName;
mutable QDateTime m_lastModified;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment