[gnome-builder/gnome-builder-3-30] workbench: fix loader sorting with addin hint
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-30] workbench: fix loader sorting with addin hint
- Date: Fri, 19 Oct 2018 22:43:44 +0000 (UTC)
commit 04b88d2c9f18c0a90965c609321dfe5dc20499bc
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 19 15:43:11 2018 -0700
workbench: fix loader sorting with addin hint
src/libide/workbench/ide-workbench-open.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/workbench/ide-workbench-open.c b/src/libide/workbench/ide-workbench-open.c
index 6cdcf6662..7ed4c33f4 100644
--- a/src/libide/workbench/ide-workbench-open.c
+++ b/src/libide/workbench/ide-workbench-open.c
@@ -114,13 +114,13 @@ ide_workbench_loader_compare (gconstpointer a,
gchar *name;
name = ide_workbench_addin_get_id (loadera->addin);
- match = g_strcmp0 (hint, name);
+ match = g_strcmp0 (hint, name) == 0;
g_free (name);
if (match)
return -1;
name = ide_workbench_addin_get_id (loaderb->addin);
- match = g_strcmp0 (hint, name);
+ match = g_strcmp0 (hint, name) == 0;
g_free (name);
if (match)
return 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]