[gnome-software] offline updates: Cancel the update when the user presses Cancel



commit b763956a53af5322139f091257708270ef5c7f0d
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Aug 31 16:03:40 2014 +0200

    offline updates: Cancel the update when the user presses Cancel
    
    Due to an early return code path, the offline update would still remain
    in the triggered state even after pressing cancel in the shutdown
    dialog. Fix this.

 src/gs-utils.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index b0d681a..3d92828 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -327,7 +327,6 @@ reboot_done (GObject *source, GAsyncResult *res, gpointer data)
        if (error) {
                g_warning ("Calling org.gnome.SessionManager.Reboot failed: %s\n", error->message);
                g_error_free (error);
-               return;
        }
 
        reboot_failed ();


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