mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-22 22:13:36 -06:00
[sc9k] Fix signal/slot disconnect in SlideView::songListUpdate
This commit is contained in:
parent
9f29b58522
commit
7bc42bf01e
@ -91,7 +91,7 @@ void SlideView::songListUpdate(QStringList songList) {
|
||||
// We want to reset the song to 0 upon replacement,
|
||||
// but leave it alone upon initialization.
|
||||
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->addItems(songList);
|
||||
if (isReplacement) {
|
||||
|
Loading…
Reference in New Issue
Block a user