[gnome-builder] libide/tweaks: fix logic check for rooting clones



commit 99054d13d6bec15951d176e96f27886b468181c7
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 27 01:26:24 2022 -0700

    libide/tweaks: fix logic check for rooting clones

 src/libide/tweaks/ide-tweaks-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/tweaks/ide-tweaks-widget.c b/src/libide/tweaks/ide-tweaks-widget.c
index 555f360d6..210eb1d7b 100644
--- a/src/libide/tweaks/ide-tweaks-widget.c
+++ b/src/libide/tweaks/ide-tweaks-widget.c
@@ -256,7 +256,7 @@ ide_tweaks_widget_set_binding (IdeTweaksWidget  *self,
   if (g_set_object (&priv->binding, binding))
     {
       /* Root the binding if necessary */
-      if (binding != NULL && ide_tweaks_item_get_parent (IDE_TWEAKS_ITEM (binding)))
+      if (binding != NULL && !ide_tweaks_item_get_parent (IDE_TWEAKS_ITEM (binding)))
         ide_tweaks_item_insert_after (IDE_TWEAKS_ITEM (binding),
                                       IDE_TWEAKS_ITEM (self),
                                       NULL);


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