From 82b36ca41e9f4e07066d855bb7adf85fa88ec5a7 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 3 Jan 2015 20:49:26 -0800 Subject: [PATCH] UI: Allow buttons to refresh properties view I forgot to check the return value from the button to see if the button wanted the UI to be refreshed or not. --- obs/properties-view.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obs/properties-view.cpp b/obs/properties-view.cpp index b594a0b46..354a99ebb 100644 --- a/obs/properties-view.cpp +++ b/obs/properties-view.cpp @@ -664,7 +664,10 @@ bool WidgetInfo::FontChanged(const char *setting) void WidgetInfo::ButtonClicked() { - obs_property_button_clicked(property, view->obj); + if (obs_property_button_clicked(property, view->obj)) { + QMetaObject::invokeMethod(view, "RefreshProperties", + Qt::QueuedConnection); + } } void WidgetInfo::ControlChanged()