mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
make welcome widget not abuse the filesystem
This commit is contained in:
@@ -74,7 +74,7 @@ WelcomeWidget::updatePlaylists()
|
||||
|
||||
foreach( const Tomahawk::playlist_ptr& playlist, playlists )
|
||||
{
|
||||
connect( playlist.data(), SIGNAL( revisionLoaded( Tomahawk::PlaylistRevision ) ), SLOT( updatePlaylists() ) );
|
||||
connect( playlist.data(), SIGNAL( revisionLoaded( Tomahawk::PlaylistRevision ) ), SLOT( refresh() ) );
|
||||
|
||||
PlaylistWidgetItem* item = new PlaylistWidgetItem( playlist );
|
||||
ui->playlistWidget->addItem( item );
|
||||
@@ -90,6 +90,12 @@ WelcomeWidget::updatePlaylists()
|
||||
ui->playlistWidget->overlay()->hide();
|
||||
}
|
||||
|
||||
void
|
||||
WelcomeWidget::refresh()
|
||||
{
|
||||
ui->playlistWidget->update();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
WelcomeWidget::onSourceAdded( const Tomahawk::source_ptr& source )
|
||||
|
@@ -118,6 +118,7 @@ signals:
|
||||
|
||||
public slots:
|
||||
void updatePlaylists();
|
||||
void refresh();
|
||||
|
||||
private slots:
|
||||
void onSourceAdded( const Tomahawk::source_ptr& source );
|
||||
|
Reference in New Issue
Block a user