Summary: | Juk crashes when it's playing a playlist, and the list is removed | ||
---|---|---|---|
Product: | [Applications] juk | Reporter: | James Bunton <james> |
Component: | general | Assignee: | Scott Wheeler <wheeler> |
Status: | RESOLVED FIXED | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
James Bunton
2003-06-15 05:02:34 UTC
Subject: kdemultimedia/juk CVS commit by wheeler: Don't crash when the user removes the currently playing playlist. CCMAIL: 59792-done@bugs.kde.org M +8 -0 playlistsplitter.cpp 1.96 M +1 -1 playlistsplitter.h 1.69 --- kdemultimedia/juk/playlistsplitter.cpp #1.95:1.96 @@ -364,4 +364,12 @@ void PlaylistSplitter::slotAddToPlaylist } +void PlaylistSplitter::slotDeletePlaylist() +{ + if(m_playingItem && m_playingItem->listView() == visiblePlaylist()) + m_playingItem = 0; + + m_playlistBox->deleteItem(); +} + void PlaylistSplitter::slotAddToPlaylist(const QStringList &files, Playlist *list) { --- kdemultimedia/juk/playlistsplitter.h #1.68:1.69 @@ -230,5 +230,5 @@ public slots: void slotRenamePlaylist() { m_playlistBox->rename(); } void slotDuplicatePlaylist() { m_playlistBox->duplicate(); } - void slotDeletePlaylist() { m_playlistBox->deleteItem(); } + void slotDeletePlaylist(); signals: |