浏览代码

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.
Ford Smith 4 年之前
父节点
当前提交
eb4dbb72c7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      UI/properties-view.hpp

+ 1 - 0
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);
 		}