diff --git a/src/widgets/helper/ChannelView.cpp b/src/widgets/helper/ChannelView.cpp index 31272e601..26eb0c8ab 100644 --- a/src/widgets/helper/ChannelView.cpp +++ b/src/widgets/helper/ChannelView.cpp @@ -327,10 +327,10 @@ void ChannelView::pause(PauseReason reason, std::optional msecs) void ChannelView::unpause(PauseReason reason) { - /// Remove the value from the map - this->pauses_.erase(reason); - - this->updatePauses(); + if (this->pauses_.erase(reason) > 0) + { + this->updatePauses(); + } } void ChannelView::updatePauses()