[sc9k] Fix signal/slot disconnect in SlideView::songListUpdate

This commit is contained in:
Gary Talent 2022-07-31 08:48:13 -05:00
parent 9f29b58522
commit 7bc42bf01e

View File

@ -91,7 +91,7 @@ void SlideView::songListUpdate(QStringList songList) {
// We want to reset the song to 0 upon replacement, // We want to reset the song to 0 upon replacement,
// but leave it alone upon initialization. // but leave it alone upon initialization.
auto isReplacement = m_songSelector->count() > 0; auto isReplacement = m_songSelector->count() > 0;
disconnect(m_songSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSong(int))); disconnect(m_songSelector, &QListWidget::currentRowChanged, this, &SlideView::changeSong);
m_songSelector->clear(); m_songSelector->clear();
m_songSelector->addItems(songList); m_songSelector->addItems(songList);
if (isReplacement) { if (isReplacement) {