Qt ui: only stop repeat sounds (#2577)

old-commit-hash: 1e48b2458e2799bcfeded9e42996da605b66561f
This commit is contained in:
Willem Melching
2020-11-19 21:04:14 +01:00
committed by GitHub
parent d6531eee62
commit ba77d62542
+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();
}
}
}