mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
Fix a crash when loading an old playlist containing Radio items after an upgrade to a version where they're Internet items
This commit is contained in:
parent
05ac1e1afc
commit
69bd5555e7
@ -33,7 +33,6 @@ class InternetPlaylistItem : public PlaylistItem {
|
||||
Options options() const;
|
||||
|
||||
bool InitFromQuery(const SqlRow& query);
|
||||
void BindToQuery(QSqlQuery *query) const;
|
||||
|
||||
Song Metadata() const;
|
||||
QUrl Url() const;
|
||||
|
@ -41,8 +41,8 @@ PlaylistItem* PlaylistItem::NewFromType(const QString& type) {
|
||||
return new JamendoPlaylistItem(type);
|
||||
if (type == "Stream" || type == "File")
|
||||
return new SongPlaylistItem(type);
|
||||
if (type == "Internet")
|
||||
return new InternetPlaylistItem(type);
|
||||
if (type == "Internet" || type == "Radio")
|
||||
return new InternetPlaylistItem("Internet");
|
||||
|
||||
qLog(Warning) << "Invalid PlaylistItem type:" << type;
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user