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



commit 0295741bdc7758745ec1b05b8819d15bf4d12f4b
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 983e71c..885aea7 100644
--- a/src/plugins/gs-plugin-limba.c
+++ b/src/plugins/gs-plugin-limba.c
@@ -147,9 +147,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 ();
 
@@ -185,9 +185,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]