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