Qt ui: only stop repeat sounds (#2577)

This commit is contained in:
Willem Melching
2020-11-19 21:04:14 +01:00
committed by GitHub
parent 7d9fa1f85e
commit 1e48b2458e
+4 -1
View File
@@ -18,7 +18,10 @@ bool QtSound::play(AudibleAlert alert) {
void QtSound::stop() {
for (auto &kv : sounds) {
kv.second.stop();
// Only stop repeating sounds
if (sound_map[kv.first].second != 0) {
kv.second.stop();
}
}
}