[gnome-packagekit] Don't re-get the update list after a failed install, just undisable the checkboxes. Fixes rh#496870



commit b2675dafeb00c622d9b2efb46748d230c0ecda3a
Author: Richard Hughes <richard hughsie com>
Date:   Wed Apr 22 14:30:45 2009 +0100

    Don't re-get the update list after a failed install, just undisable the checkboxes. Fixes rh#496870
---
 src/gpk-update-viewer.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index fbaea72..23894cf 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -333,7 +333,6 @@ out:
 	return ret;
 }
 
-
 /**
  * gpk_update_viewer_button_install_cb:
  **/
@@ -2235,8 +2234,8 @@ gpk_update_viewer_repo_signature_event_cb (GpkHelperRepoSignature *_helper_repo_
 	GError *error = NULL;
 
 	if (type != GTK_RESPONSE_YES) {
-		/* we've ruined the old one by making the checkboxes insensitive */
-		gpk_update_viewer_get_new_update_list ();
+		/* make sensitive again */
+		gpk_update_viewer_undisable_packages ();
 		goto out;
 	}
 
@@ -2253,8 +2252,9 @@ gpk_update_viewer_repo_signature_event_cb (GpkHelperRepoSignature *_helper_repo_
 	if (!ret) {
 		egg_warning ("cannot install signature: %s", error->message);
 		g_error_free (error);
-		/* we've ruined the old one by making the checkboxes insensitive */
-		gpk_update_viewer_get_new_update_list ();
+
+		/* make sensitive again */
+		gpk_update_viewer_undisable_packages ();
 		goto out;
 	}
 out:
@@ -2276,8 +2276,8 @@ gpk_update_viewer_eula_event_cb (GpkHelperRepoSignature *_helper_eula, GtkRespon
 	GError *error = NULL;
 
 	if (type != GTK_RESPONSE_YES) {
-		/* we've ruined the old one by making the checkboxes insensitive */
-		gpk_update_viewer_get_new_update_list ();
+		/* make sensitive again */
+		gpk_update_viewer_undisable_packages ();
 		goto out;
 	}
 
@@ -2294,8 +2294,8 @@ gpk_update_viewer_eula_event_cb (GpkHelperRepoSignature *_helper_eula, GtkRespon
 	if (!ret) {
 		egg_warning ("cannot accept eula: %s", error->message);
 		g_error_free (error);
-		/* we've ruined the old one by making the checkboxes insensitive */
-		gpk_update_viewer_get_new_update_list ();
+		/* make sensitive again */
+		gpk_update_viewer_undisable_packages ();
 		goto out;
 	}
 out:



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