Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8d3e49f7 authored by Scott Wheeler's avatar Scott Wheeler

Make the tag editor work properly again -- don't use the full path name in

the textedit and compare against just the file name rather than the full
path.

svn path=/trunk/kdemultimedia/juk/; revision=302757
parent 0205b152
......@@ -103,7 +103,7 @@ void TagEditor::slotRefresh()
m_trackNameBox->setText(tag->title());
m_albumNameBox->setEditText(tag->album());
m_fileNameBox->setText(item->file().absFilePath());
m_fileNameBox->setText(item->file().fileInfo().fileName());
m_bitrateBox->setText(QString::number(tag->bitrate()));
m_lengthBox->setText(tag->lengthString());
......@@ -466,7 +466,9 @@ void TagEditor::save(const PlaylistItemList &list)
// If the file name in the box doesn't match the current file
// name...
if(list.count() == 1 && item->file().absFilePath() != newFile.fileName()) {
if(list.count() == 1 &&
item->file().fileInfo().fileName() != newFile.fileName())
{
// Rename the file if it doesn't exist or the user says
// that it's ok.
......
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