aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-04-05 20:58:34 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-04-05 20:58:34 +0000
commitda0d54137d91c36f24bf1e1a76f11f7d8a393a0c (patch)
tree24eb1a07f548f9cec45553c1323732dadbc21206
parentb118a6c4c32f35abf88e47b8f469714bae33829a (diff)
downloadqmmp-da0d54137d91c36f24bf1e1a76f11f7d8a393a0c.tar.gz
qmmp-da0d54137d91c36f24bf1e1a76f11f7d8a393a0c.tar.bz2
qmmp-da0d54137d91c36f24bf1e1a76f11f7d8a393a0c.zip
update groups after playlist updating
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9798 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmpui/playlistmodel.cpp4
-rw-r--r--src/qmmpui/playlistmodel.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/qmmpui/playlistmodel.cpp b/src/qmmpui/playlistmodel.cpp
index 2f8cf0cbd..4c87225fb 100644
--- a/src/qmmpui/playlistmodel.cpp
+++ b/src/qmmpui/playlistmodel.cpp
@@ -987,6 +987,10 @@ void PlayListModel::onTaskFinished()
emit listChanged(flags);
}
+ else
+ {
+ emit listChanged(METADATA);
+ }
}
}
diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h
index 9c3ad3431..2703e4171 100644
--- a/src/qmmpui/playlistmodel.h
+++ b/src/qmmpui/playlistmodel.h
@@ -589,8 +589,8 @@ private slots:
void updateMetaData(const QStringList &paths);
private:
- PlayListTrack* m_current_track = nullptr;
- PlayListTrack* m_stop_track = nullptr;
+ PlayListTrack *m_current_track = nullptr;
+ PlayListTrack *m_stop_track = nullptr;
int m_current = 0;
SimpleSelection m_selection; /*!< This flyweight object represents current selection. */
QQueue <PlayListTrack*> m_queued_songs; /*!< Songs in play queue. */