mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
more assert fixes
This commit is contained in:
@@ -54,7 +54,7 @@ NewPlaylistWidget::NewPlaylistWidget( QWidget* parent )
|
|||||||
connect( ui->buttonBox, SIGNAL( rejected() ), SLOT( cancel() ) );
|
connect( ui->buttonBox, SIGNAL( rejected() ), SLOT( cancel() ) );
|
||||||
|
|
||||||
m_suggestionsModel = new PlaylistModel( ui->suggestionsView );
|
m_suggestionsModel = new PlaylistModel( ui->suggestionsView );
|
||||||
ui->suggestionsView->setModel( m_suggestionsModel );
|
ui->suggestionsView->setPlaylistModel( m_suggestionsModel );
|
||||||
ui->suggestionsView->overlay()->setEnabled( false );
|
ui->suggestionsView->overlay()->setEnabled( false );
|
||||||
|
|
||||||
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( updateSuggestions() ) );
|
connect( &m_filterTimer, SIGNAL( timeout() ), SLOT( updateSuggestions() ) );
|
||||||
@@ -123,7 +123,7 @@ NewPlaylistWidget::suggestionsFound()
|
|||||||
|
|
||||||
delete m_suggestionsModel;
|
delete m_suggestionsModel;
|
||||||
m_suggestionsModel = new PlaylistModel( ui->suggestionsView );
|
m_suggestionsModel = new PlaylistModel( ui->suggestionsView );
|
||||||
ui->suggestionsView->setModel( m_suggestionsModel );
|
ui->suggestionsView->setPlaylistModel( m_suggestionsModel );
|
||||||
|
|
||||||
QList<Tomahawk::query_ptr> ql;
|
QList<Tomahawk::query_ptr> ql;
|
||||||
foreach( const Tomahawk::plentry_ptr& entry, m_entries )
|
foreach( const Tomahawk::plentry_ptr& entry, m_entries )
|
||||||
|
Reference in New Issue
Block a user