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



commit 935881fbd160b5549d4e3c62b383624a7257111c
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 f98b3d25..d6fa7fbb 100644
--- a/pitivi/utils/widgets.py
+++ b/pitivi/utils/widgets.py
@@ -998,7 +998,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]