[gnome-software/gnome-3-18] limba: Only return FALSE if we set an error as well



commit 3179e78a2f623e14ae1e93df1c4459eef00980fe
Author: Matthias Klumpp <matthias tenstral net>
Date:   Mon Nov 2 17:13:57 2015 +0100

    limba: Only return FALSE if we set an error as well
    
    This prevents g-s from crashing on installations/removals if the Limba
    plugin is enabled.

 src/plugins/gs-plugin-limba.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/gs-plugin-limba.c b/src/plugins/gs-plugin-limba.c
index 1814ff6..fc6f9be 100644
--- a/src/plugins/gs-plugin-limba.c
+++ b/src/plugins/gs-plugin-limba.c
@@ -151,9 +151,9 @@ gs_plugin_app_remove (GsPlugin *plugin,
 
        /* check if we can remove this application */
        if (bundle == NULL)
-               return FALSE;
+               return TRUE;
        if (as_bundle_get_kind (bundle) != AS_BUNDLE_KIND_LIMBA)
-               return FALSE;
+               return TRUE;
 
        mgr = li_manager_new ();
 
@@ -189,9 +189,9 @@ gs_plugin_app_install (GsPlugin *plugin,
 
        /* check if we can install this application */
        if (bundle == NULL)
-               return FALSE;
+               return TRUE;
        if (as_bundle_get_kind (bundle) != AS_BUNDLE_KIND_LIMBA)
-               return FALSE;
+               return TRUE;
 
        /* create new installer and select remote package */
        inst = li_installer_new ();


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