ticker would not always be updated on osx

preferencesAboutTextFull
Clément Fauconnier 3 years ago
parent 57d692af88
commit d562cd103e
  1. 6
      src/domain/UBGraphicsMediaItemDelegate.cpp

@ -275,8 +275,12 @@ void UBGraphicsMediaItemDelegate::mediaStateChanged(QMediaPlayer::State state)
// updatePlayPauseState handles this functionality // updatePlayPauseState handles this functionality
if (state == QMediaPlayer::StoppedState) if (state == QMediaPlayer::StoppedState)
{
delegated()->setMediaPos(0); delegated()->setMediaPos(0);
#ifdef Q_OS_OSX //media positionChanged signal is not always called in osx
mMediaControl->updateTicker(0);
#endif
}
updatePlayPauseState(); updatePlayPauseState();
} }

Loading…
Cancel
Save