Commit fe46bf6d authored by Scott Wheeler's avatar Scott Wheeler

Add a check for null so that this doesn't crash if the user choses to

cancel creating a playlist.

svn path=/trunk/kdemultimedia/juk/; revision=237516
parent 0fcfbb64
......@@ -735,6 +735,14 @@ void PlaylistSplitter::slotPlaylistItemRemoved(PlaylistItem *item)
m_nextPlaylistItem = 0;
void PlaylistSplitter::slotCreatePlaylist(const QStringList &files)
Playlist *p = slotCreatePlaylist();
slotAddToPlaylist(files, p);
void PlaylistSplitter::slotCreatePlaylist(const PlaylistItemList &items)
......@@ -354,7 +354,7 @@ private slots:
* Create a playlist that contains the specified files.
void slotCreatePlaylist(const QStringList &files) { slotAddToPlaylist(files, slotCreatePlaylist()); }
void slotCreatePlaylist(const QStringList &files);
* This slot creates a playlist that contains the listed items. It is
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment