[gnome-software] trivial: Only remove the review when calling the remove action



commit d961f199b9a89d30446cf73aec351aee51e7e06c
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 10 16:35:09 2016 +0000

    trivial: Only remove the review when calling the remove action

 src/gs-plugin-loader.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 61542cf..ccf3ebc 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -2495,7 +2495,8 @@ gs_plugin_loader_review_action_thread_cb (GTask *task,
                gs_app_add_review (state->app, state->review);
 
        /* remove this from the app */
-       gs_app_remove_review (state->app, state->review);
+       if (g_strcmp0 (state->function_name, "gs_plugin_review_remove") == 0)
+               gs_app_remove_review (state->app, state->review);
 
        g_task_return_boolean (task, TRUE);
 }


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