From 7bc42bf01eb3dde01843991d82effc92acc9b032 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 31 Jul 2022 08:48:13 -0500 Subject: [PATCH] [sc9k] Fix signal/slot disconnect in SlideView::songListUpdate --- src/slideview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slideview.cpp b/src/slideview.cpp index 7c555f4..a53822c 100644 --- a/src/slideview.cpp +++ b/src/slideview.cpp @@ -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) {