[rygel/wip/phako/remove-warnings: 6/14] ui: Fix potential null access warning



commit 71f76fe9f289a1a10001cdc6843aaff63ac0c4cf
Author: Jens Georg <mail jensge org>
Date:   Thu Feb 13 22:31:59 2020 +0100

    ui: Fix potential null access warning

 src/ui/rygel-preferences-dialog.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala
index 89a705eb..5ea6f15f 100644
--- a/src/ui/rygel-preferences-dialog.vala
+++ b/src/ui/rygel-preferences-dialog.vala
@@ -71,7 +71,7 @@ public class Rygel.PreferencesDialog : GLib.Object {
             return true;
         });
 
-        (builder.get_object (CLOSE_BUTTON) as Button).clicked.connect ( () => {
+        ((Button) builder.get_object (CLOSE_BUTTON)).clicked.connect ( () => {
             this.dialog.hide ();
             this.loop.quit ();
         });


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