Add note about ratings being lost if file renamed
This commit is contained in:
committed by
craig.p.drummond
parent
b3d4d52632
commit
97becea323
@@ -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
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ private Q_SLOTS:
|
||||
void controlRemoveAct();
|
||||
void removeItems();
|
||||
void showMopidyMessage();
|
||||
void showRatingsMessage();
|
||||
void setFilenameScheme(const QString &text);
|
||||
|
||||
private:
|
||||
|
||||
@@ -131,6 +131,13 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="UrlLabel" name="ratingsNote">
|
||||
<property name="text" stdset="0">
|
||||
<string><i><b>NOTE:</b> Ratings will be lost if a file is renamed.</i></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QProgressBar" name="progress"/>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user