Commit eab7a760 authored by Frerich Raabe's avatar Frerich Raabe

- Don't say something if you don't have anything senseful to say.

svn path=/trunk/kdemultimedia/juk/; revision=214445
parent 1ccb3f1b
......@@ -551,11 +551,16 @@ void TagEditor::slotSuggestClicked()
Q_ASSERT(tag);
TagGuesser guesser(tag->absFilePath());
m_trackNameBox->setText(guesser.title());
m_artistNameBox->setEditText(guesser.artist());
m_albumNameBox->setEditText(guesser.album());
m_trackSpin->setValue(guesser.track().toInt());
m_commentBox->setText(guesser.comment());
if(!guesser.title().isNull())
m_trackNameBox->setText(guesser.title());
if(!guesser.artist().isNull())
m_artistNameBox->setEditText(guesser.artist());
if(!guesser.album().isNull())
m_albumNameBox->setEditText(guesser.album());
if(!guesser.track().isNull())
m_trackSpin->setValue(guesser.track().toInt());
if(!guesser.comment().isNull())
m_commentBox->setText(guesser.comment());
}
#include "tageditor.moc"
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