[vlc-commits] [Git][videolan/vlc][master] qml: fix appending to playlist
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Feb 15 12:22:16 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
3d2b9664 by Prince Gupta at 2023-02-15T11:48:48+00:00
qml: fix appending to playlist
fixes #27826
- - - - -
1 changed file:
- modules/gui/qt/dialogs/playlists/playlists.cpp
Changes:
=====================================
modules/gui/qt/dialogs/playlists/playlists.cpp
=====================================
@@ -209,13 +209,18 @@ void PlaylistsDialog::onTextEdited()
void PlaylistsDialog::onAccepted()
{
- MLItemId id;
QString text = m_lineEdit->text();
if (text.isEmpty())
- id = m_model->getItemId(m_playlists->currentIndex().row());
+ {
+ const MLItemId playlistId = m_model->getItemId(m_playlists->currentIndex().row());
+ m_model->append(playlistId, m_ids);
+ }
else
+ {
m_model->create(text, m_ids);
+ }
+
close();
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3d2b9664cabc2cf5eeba9f1a8d30d647c704f663
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3d2b9664cabc2cf5eeba9f1a8d30d647c704f663
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list