[pitivi] widgets: Fix setting the default value of the widget



commit 6d0e75d8708c78100c0f8f60502e701d235dbef0
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Jan 29 07:01:31 2019 +0100

    widgets: Fix setting the default value of the widget

 pitivi/utils/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pitivi/utils/widgets.py b/pitivi/utils/widgets.py
index adcbd955..5d695ddc 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -1110,7 +1110,7 @@ class GstElementSettingsWidget(Gtk.Box, Loggable):
 
         if value is None:
             value = prop.default_value
-        else:
+        if value is not None:
             widget.setWidgetValue(value)
 
         return widget


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]