Place MPDConnection in its own thread, and use signals/slots to communicate with it.
This commit is contained in:
@@ -334,6 +334,12 @@ void PlaylistTableModel::updateCurrentSong(quint32 id)
|
||||
emit dataChanged(index(getRowById(song_id), 0), index(getRowById(song_id), 2));
|
||||
}
|
||||
|
||||
void PlaylistTableModel::clear()
|
||||
{
|
||||
songs=QList<Song>();
|
||||
reset();
|
||||
}
|
||||
|
||||
void PlaylistTableModel::updatePlaylist(const QList<Song> &songs)
|
||||
{
|
||||
this->songs = songs;
|
||||
|
||||
Reference in New Issue
Block a user