Add note about ratings being lost if file renamed

This commit is contained in:
craig.p.drummond
2014-08-12 19:46:07 +00:00
committed by craig.p.drummond
parent b3d4d52632
commit 97becea323
3 changed files with 16 additions and 1 deletions

View File

@@ -157,6 +157,7 @@ void TrackOrganiser::show(const QList<Song> &songs, const QString &udi, bool for
} else {
REMOVE(mopidyNote);
}
connect(ratingsNote, SIGNAL(leftClickedUrl()), SLOT(showRatingsMessage()));
Dialog::show();
enableButtonOk(false);
updateView();
@@ -486,6 +487,13 @@ void TrackOrganiser::showMopidyMessage()
QLatin1String("Mopidy"));
}
void TrackOrganiser::showRatingsMessage()
{
MessageBox::information(this, i18n("Song ratings are not stored in the song files, but within MPD's 'sticker' database.\n\n"
"If you rename a file (or the folder it is within), then the rating associated with the song will be lost."),
QLatin1String("Ratings"));
}
void TrackOrganiser::setFilenameScheme(const QString &text)
{
if (filenameScheme->text()!=text) {
@@ -558,4 +566,3 @@ Device * TrackOrganiser::getDevice(QWidget *p)
return dev;
}
#endif

View File

@@ -60,6 +60,7 @@ private Q_SLOTS:
void controlRemoveAct();
void removeItems();
void showMopidyMessage();
void showRatingsMessage();
void setFilenameScheme(const QString &text);
private:

View File

@@ -131,6 +131,13 @@
</property>
</widget>
</item>
<item>
<widget class="UrlLabel" name="ratingsNote">
<property name="text" stdset="0">
<string>&lt;i&gt;&lt;b&gt;NOTE:&lt;/b&gt; Ratings will be lost if a file is renamed.&lt;/i&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QProgressBar" name="progress"/>
</item>