[gtk+] GtkPlacesSidebar: Only add shortcut if query succeeds



commit 94ed54f8add5819be59ff96a0c76a480055b62f5
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Thu Sep 11 23:23:55 2014 +0100

    GtkPlacesSidebar: Only add shortcut if query succeeds
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736512

 gtk/gtkplacessidebar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 70bccaf..3b92ca1 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -754,7 +754,7 @@ on_app_shortcuts_query_complete (GObject      *source,
 
   info = g_file_query_info_finish (file, result, NULL);
 
-  if (info == NULL)
+  if (info)
     {
       gchar *uri;
       gchar *tooltip;


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