[Kimchi-devel] [PATCH] Issue #667: Unable to rename guest when it is paused

Ramon Medeiros ramonn at linux.vnet.ibm.com
Tue Sep 1 19:50:11 UTC 2015


Block guest edition when paused.

Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.guest_edit_main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/js/src/kimchi.guest_edit_main.js b/ui/js/src/kimchi.guest_edit_main.js
index fc1b4c1..fdc46cb 100644
--- a/ui/js/src/kimchi.guest_edit_main.js
+++ b/ui/js/src/kimchi.guest_edit_main.js
@@ -662,7 +662,7 @@ kimchi.guest_edit_main = function() {
                 event.preventDefault();
                 kimchi.window.open("guest-storage-add.html");
             });
-        if(kimchi.thisVMState === "running") {
+        if ((kimchi.thisVMState === "running") || (kimchi.thisVMState === "paused")) {
             $("#form-guest-edit-general input").prop("disabled", true);
         } else {
             $("#action-button-container").removeClass("hidden");
-- 
2.1.0




More information about the Kimchi-devel mailing list