[gnome-packagekit/gnome-2-28] Don't show the the 'all updates installed dialog' if we've just shown the restart required dialog



commit 325fce148ec7a0efd5b9edf02354db3f8bdd7508
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 15 10:48:41 2009 +0100

    Don't show the the 'all updates installed dialog' if we've just shown the restart required dialog

 src/gpk-update-viewer.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 240dcbc..73d4cd3 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -1915,6 +1915,7 @@ gpk_update_viewer_finished_cb (PkClient *client, PkExitEnum exit, guint runtime,
 		    restart_update == PK_RESTART_ENUM_SECURITY_SYSTEM) {
 			gpk_update_viewer_check_restart (restart_update);
 			g_main_loop_quit (loop);
+			goto out;
 		}
 
 		/* hide close button */
@@ -1970,6 +1971,8 @@ gpk_update_viewer_finished_cb (PkClient *client, PkExitEnum exit, guint runtime,
 		widget = GTK_WIDGET (gtk_builder_get_object (builder, "button_install"));
 		gtk_widget_set_sensitive (widget, TRUE);
 	}
+out:
+	return;
 }
 
 static GSList *active_rows = NULL;



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