virt-manager/53ce11d1-honor-untoggled-set-fixed-MAC-address.patch

25 lines
1017 B
Diff
Raw Normal View History

Subject: virt-manager, create: honor untoggled "Set a fixed MAC address"
From: Giuseppe Scrivano gscrivan@redhat.com Mon Jul 21 11:28:28 2014 +0200
Date: Tue Jul 22 09:25:05 2014 +0200:
Git: 312b349fceffec38dd04aa35d053b082fe698f3a
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1083461
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Index: virt-manager-1.0.1/virtManager/create.py
===================================================================
--- virt-manager-1.0.1.orig/virtManager/create.py
+++ virt-manager-1.0.1/virtManager/create.py
@@ -1674,7 +1674,9 @@ class vmmCreate(vmmGObjectUI):
if not self.validate_storage_page():
return False
- macaddr = self.widget("config-macaddr").get_text().strip()
+ macaddr = None
+ if self.widget("config-macaddr").get_sensitive():
+ macaddr = self.widget("config-macaddr").get_text().strip()
nettype = self.netlist.get_network_selection()[0]
if nettype is None: