Blame SOURCES/0180-p2v-Set-status-to-Conversion-cancelled-by-user-when-.patch

ffd6ed
From 05dcfa56c9d7c996e48a1c89737d8768dd0edad5 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Tue, 2 Jun 2015 13:51:47 +0100
ffd6ed
Subject: [PATCH] p2v: Set status to "Conversion cancelled by user" when user
ffd6ed
 cancels (RHBZ#1226794).
ffd6ed
ffd6ed
Thanks: Tingting Zheng.
ffd6ed
(cherry picked from commit 3e9a0fac148f7ce48db2bac2ba6f99e81fd603c7)
ffd6ed
---
ffd6ed
 p2v/conversion.c | 2 ++
ffd6ed
 1 file changed, 2 insertions(+)
ffd6ed
ffd6ed
diff --git a/p2v/conversion.c b/p2v/conversion.c
ffd6ed
index 4ebdfc4..6c03ab9 100644
ffd6ed
--- a/p2v/conversion.c
ffd6ed
+++ b/p2v/conversion.c
ffd6ed
@@ -306,6 +306,8 @@ start_conversion (struct config *config,
ffd6ed
 
ffd6ed
   if (stop) {
ffd6ed
     set_conversion_error ("cancelled by user");
ffd6ed
+    if (notify_ui)
ffd6ed
+      notify_ui (NOTIFY_STATUS, _("Conversion cancelled by user."));
ffd6ed
     goto out;
ffd6ed
   }
ffd6ed
 
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed