[gnome-todo] task-list-view: Fix error checking



commit 71f9dc6fbddbc657cf10d829898582cbed0e2030
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 20 00:31:28 2020 -0300

    task-list-view: Fix error checking

 src/task-list-view/gtd-task-list-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/task-list-view/gtd-task-list-view.c b/src/task-list-view/gtd-task-list-view.c
index d3b1121..8d1a4bf 100644
--- a/src/task-list-view/gtd-task-list-view.c
+++ b/src/task-list-view/gtd-task-list-view.c
@@ -758,7 +758,7 @@ get_task_from_drag (GtdTaskListView *self,
 
   g_value_init (&value, GTD_TYPE_TASK);
   gdk_content_provider_get_value (content, &value, &error);
-  if (!error)
+  if (error)
     {
       g_warning ("Error retriving drag value: %s", error->message);
       return NULL;


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