Skip to content

Commit

Permalink
qt5 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltca committed Jul 26, 2024
1 parent 26fb79a commit e0e81cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/snd/libkvisnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,11 @@ bool KviSoundPlayer::havePlayingSounds()

#ifdef COMPILE_QTMULTIMEDIA_SUPPORT
if(m_pMediaPlayer)
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
if(m_pMediaPlayer->state() == QMediaPlayer::PlayingState)
#else
if(m_pMediaPlayer->isPlaying())
#endif
return true;
#endif

Expand Down

0 comments on commit e0e81cc

Please sign in to comment.