Make sure schedule playlist save timer is started from correct thread

This commit is contained in:
Jonas Kvinge
2021-06-05 00:07:15 +02:00
parent faed63712f
commit a4a20ec220
3 changed files with 19 additions and 7 deletions

View File

@@ -185,8 +185,8 @@ class Playlist : public QAbstractListModel {
static bool set_column_value(Song &song, Column column, const QVariant &value);
// Persistence
void ScheduleSave() const;
void Restore();
void ScheduleSaveAsync();
// Accessors
QSortFilterProxyModel *proxy() const;
@@ -383,7 +383,8 @@ class Playlist : public QAbstractListModel {
void ItemReloadComplete(const QPersistentModelIndex &idx, const Song &old_metadata, const bool metadata_edit);
void ItemsLoaded();
void SongInsertVetoListenerDestroyed();
void Save() const;
void ScheduleSave();
void Save();
private:
bool is_loading_;