mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0060-p2v-Disable-Cancel-Conversion-button-after-the-conve.patch

0d20ef
From c341b85dd47b4442d5c7377d6e34f5a4189eac4f Mon Sep 17 00:00:00 2001
0d20ef
From: "Richard W.M. Jones" <rjones@redhat.com>
0d20ef
Date: Thu, 20 Nov 2014 16:01:09 +0000
0d20ef
Subject: [PATCH] p2v: Disable "Cancel Conversion" button after the conversion
0d20ef
 (RHBZ#1165569).
0d20ef
0d20ef
Actually this bug does nothing and remains cancelled all the
0d20ef
way through.  The next commit makes it function.
0d20ef
0d20ef
(cherry picked from commit 98dd01728f61bd810f6c65a6b9e52d78365b96bd)
0d20ef
---
0d20ef
 p2v/gui.c | 3 +++
0d20ef
 1 file changed, 3 insertions(+)
0d20ef
0d20ef
diff --git a/p2v/gui.c b/p2v/gui.c
0d20ef
index 72838ea..523b028 100644
0d20ef
--- a/p2v/gui.c
0d20ef
+++ b/p2v/gui.c
0d20ef
@@ -1324,6 +1324,9 @@ start_conversion_thread (void *data)
0d20ef
     gtk_widget_destroy (dlg);
0d20ef
   }
0d20ef
 
0d20ef
+  /* Disable the cancel button. */
0d20ef
+  gtk_widget_set_sensitive (cancel_button, FALSE);
0d20ef
+
0d20ef
   /* Enable the reboot button. */
0d20ef
   gtk_widget_set_sensitive (reboot_button, TRUE);
0d20ef
 
0d20ef
-- 
0d20ef
1.8.3.1
0d20ef