fix: sorting never changes the queue

Removed the sortApplied→syncQueueToModel connection. Sorting the track
list only reorders the view; the queue is only set when a track is
actually played (double-click or Play Now), at which point the current
sorted order and clicked row are used.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
joren
2026-03-24 01:01:18 +01:00
parent d5dedacc36
commit ecaee4d907
2 changed files with 3 additions and 14 deletions

View File

@@ -29,13 +29,11 @@ namespace List
void playTrackRequested(qint64 trackId);
private:
TrackListModel *m_model = nullptr;
QobuzBackend *m_backend = nullptr;
PlayQueue *m_queue = nullptr;
qint64 m_playingId = 0;
TrackListModel *m_model = nullptr;
QobuzBackend *m_backend = nullptr;
PlayQueue *m_queue = nullptr;
void onDoubleClicked(const QModelIndex &index);
void onContextMenu(const QPoint &pos);
void syncQueueToModel();
};
}