Commit cddef1b8 authored by Michael Pyne's avatar Michael Pyne

Fix the crash bug introduced by my fix of a regression caused by wheels's fix of a regression. =D

Will backport to KDE 3.3.

svn path=/trunk/kdemultimedia/juk/; revision=350441
parent cfb41b85
......@@ -83,7 +83,7 @@ void PlaylistSplitter::setupLayout()
m_playlistStack = new QWidgetStack(top, "playlistStack");
connect(m_playlistStack, SIGNAL(aboutToShow(int)), this, SLOT(slotPlaylistChanged()));
connect(m_playlistStack, SIGNAL(aboutToShow(QWidget *)), this, SLOT(slotPlaylistChanged(QWidget *)));
m_editor = new TagEditor(editorSplitter, "tagEditor");
......@@ -160,9 +160,12 @@ void PlaylistSplitter::slotPlaylistSelectionChanged()
m_editor->slotSetItems(static_cast<PlaylistCollection *>(m_playlistBox)->selectedItems());
}
void PlaylistSplitter::slotPlaylistChanged()
void PlaylistSplitter::slotPlaylistChanged(QWidget *w)
{
m_searchWidget->setSearch(visiblePlaylist()->search());
Playlist *p = dynamic_cast<Playlist *>(w);
if(p)
m_searchWidget->setSearch(p->search());
}
#include "playlistsplitter.moc"
......@@ -70,7 +70,7 @@ private slots:
*/
void slotShowSearchResults();
void slotPlaylistSelectionChanged();
void slotPlaylistChanged();
void slotPlaylistChanged(QWidget *w);
private:
PlaylistBox *m_playlistBox;
......
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