[sc9k] Fix to SlideView to use correct signal from QListWidget

This commit is contained in:
Gary Talent 2022-07-24 09:23:07 -05:00
parent 564ed77c9a
commit 9f29b58522

View File

@ -44,7 +44,7 @@ QString SlideView::getNextSong() const {
} }
void SlideView::pollUpdate(QString songName, int slide) { 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) { if (songItems.size() < 1) {
return; return;
} }
@ -97,5 +97,5 @@ void SlideView::songListUpdate(QStringList songList) {
if (isReplacement) { if (isReplacement) {
changeSong(0); changeSong(0);
} }
connect(m_songSelector, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSong(int))); connect(m_songSelector, &QListWidget::currentRowChanged, this, &SlideView::changeSong);
} }