Commit e42d9705 authored by Scott Wheeler's avatar Scott Wheeler

Don't crash when the user removes the currently playing playlist.

CCMAIL: 59792-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=235837
parent 1fd66f4e
......@@ -363,6 +363,14 @@ void PlaylistSplitter::slotAddToPlaylist(const QString &file, Playlist *list)
m_editor->slotUpdateCollection();
}
void PlaylistSplitter::slotDeletePlaylist()
{
if(m_playingItem && m_playingItem->listView() == visiblePlaylist())
m_playingItem = 0;
m_playlistBox->deleteItem();
}
void PlaylistSplitter::slotAddToPlaylist(const QStringList &files, Playlist *list)
{
KApplication::setOverrideCursor(Qt::waitCursor);
......
......@@ -229,7 +229,7 @@ public slots:
void slotSaveAsPlaylist() { m_playlistBox->saveAs(); }
void slotRenamePlaylist() { m_playlistBox->rename(); }
void slotDuplicatePlaylist() { m_playlistBox->duplicate(); }
void slotDeletePlaylist() { m_playlistBox->deleteItem(); }
void slotDeletePlaylist();
signals:
void signalActivated();
......
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