From eb4dbb72c7d3831557f6f973d4b280d42a6699af Mon Sep 17 00:00:00 2001 From: Ford Smith Date: Tue, 27 Apr 2021 16:14:58 -0400 Subject: [PATCH] UI: Fix audio filter changes not being added to undo When a change to an audio filter was done, it would create a timer and wait for no more inputs before saving and adding to undo (this is to prevent spam from sliders). For some reason, the timer would get destroyed before the information is saved, preventing it from going on the undo stack. --- UI/properties-view.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/properties-view.hpp b/UI/properties-view.hpp index ea51f7cc9..fe1461d94 100644 --- a/UI/properties-view.hpp +++ b/UI/properties-view.hpp @@ -59,6 +59,7 @@ public: { if (update_timer) { update_timer->stop(); + QMetaObject::invokeMethod(update_timer, "timeout"); update_timer->deleteLater(); obs_data_release(old_settings_cache); }