Replace qPrintable with qUtf8Printable

Fixes #1440
This commit is contained in:
Jonas Kvinge
2024-05-13 00:05:58 +02:00
parent bf19540f8d
commit 116bbec73e
2 changed files with 5 additions and 5 deletions

View File

@@ -160,7 +160,7 @@ void SmartPlaylistsModel::Init() {
void SmartPlaylistsModel::ItemFromSmartPlaylist(const Settings &s, const bool notify) {
SmartPlaylistsItem *item = new SmartPlaylistsItem(SmartPlaylistsItem::Type_SmartPlaylist, notify ? nullptr : root_);
item->display_text = tr(qPrintable(s.value("name").toString()));
item->display_text = tr(qUtf8Printable(s.value("name").toString()));
item->sort_text = item->display_text;
item->smart_playlist_type = PlaylistGenerator::Type(s.value("type").toInt());
item->smart_playlist_data = s.value("data").toByteArray();