Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d2dcd686 authored by Michael Pyne's avatar Michael Pyne

play-queue: Remove an unneeded processEvents.

The effect is simulated by using deleteLater(). I have been unable to
reproduce any crash this way so hopefully whatever is mentioned in the
old comment does not apply to this new code.
parent c18c3d58
......@@ -614,13 +614,13 @@ void PlaylistCollection::setUpcomingPlaylistEnabled(bool enable)
else {
action<KToggleAction>("showUpcoming")->setChecked(false);
bool raiseCollection = visiblePlaylist() == m_upcomingPlaylist;
delete m_upcomingPlaylist;
m_upcomingPlaylist = 0;
if(raiseCollection) {
kapp->processEvents(); // Seems to stop a crash, weird.
raise(CollectionList::instance());
}
m_upcomingPlaylist->deleteLater();
m_upcomingPlaylist = 0;
}
}
......
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