From 9f29b5852220f39ddb0697311e41c898cb7f0761 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sun, 24 Jul 2022 09:23:07 -0500 Subject: [PATCH] [sc9k] Fix to SlideView to use correct signal from QListWidget --- src/slideview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slideview.cpp b/src/slideview.cpp index 44ad55d..7c555f4 100644 --- a/src/slideview.cpp +++ b/src/slideview.cpp @@ -44,7 +44,7 @@ QString SlideView::getNextSong() const { } void SlideView::pollUpdate(QString songName, int slide) { - auto songItems = m_songSelector->findItems(songName, Qt::MatchCaseSensitive); + auto songItems = m_songSelector->findItems(songName, Qt::MatchFixedString); if (songItems.size() < 1) { return; } @@ -97,5 +97,5 @@ void SlideView::songListUpdate(QStringList songList) { if (isReplacement) { changeSong(0); } - connect(m_songSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSong(int))); + connect(m_songSelector, &QListWidget::currentRowChanged, this, &SlideView::changeSong); }