mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 06:13:36 -06:00
Fix crash that happened after switching from an invalid to valid OpenLP host
This commit is contained in:
parent
160977110e
commit
2bfd466da1
@ -59,8 +59,11 @@ void SlideView::pollUpdate(QString const&songName, int slide) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SlideView::changeSong(int song) {
|
void SlideView::changeSong(int song) {
|
||||||
auto songItem = m_songSelector->item(song);
|
if (song < 0) {
|
||||||
if (songItem->text() != m_currentSong) {
|
return;
|
||||||
|
}
|
||||||
|
auto const songItem = m_songSelector->item(song);
|
||||||
|
if (songItem && songItem->text() != m_currentSong) {
|
||||||
emit songChanged(song);
|
emit songChanged(song);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user