Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit ed2dedfa authored by Laurent Montel's avatar Laurent Montel 😁

Fix order

parent 666f4646
......@@ -115,12 +115,12 @@ void SoundTestWidget::playSound()
QMediaPlayer *player = new QMediaPlayer;
player->setMedia(QUrl::fromLocalFile(play));
player->setVolume(50);
player->play();
connect(player, &QMediaPlayer::stateChanged, this, [this, player](QMediaPlayer::State state) {
if (state == QMediaPlayer::StoppedState) {
player->deleteLater();
}
});
player->play();
}
QString SoundTestWidget::url() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment