summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Arnold <carnold@suse.com>2014-03-19 16:26:52 -0600
committerCole Robinson <crobinso@redhat.com>2014-03-19 20:10:59 -0400
commitf113a8db29ea3d8a4080f767d2fc6f5e8488eb09 (patch)
tree0b5f1de4e9a819b08ee4c2ded8108a446b0f5a05
parentbd27910b6f77275b4e82cd2dae247e72d9489b1d (diff)
downloadvirt-manager-f113a8db29ea3d8a4080f767d2fc6f5e8488eb09.tar.gz
create: Fix URL autodetect timeout detection
When 'Network Install' is selected and a malformed url is entered in the 'URL:' box virt-manager will hang forever 'Detecting...'. For example, leave the 'http://' off the url when 'Automatically detect...' is enabled. Signed-off-by: Charles Arnold <carnold@suse.com>
-rw-r--r--virtManager/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/virtManager/create.py b/virtManager/create.py
index f0fce471..4e0dd33d 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -1908,7 +1908,7 @@ class vmmCreate(vmmGObjectUI):
try:
base = _("Detecting")
- if (self.detectedDistro == -1) or (idx >= (DETECT_TIMEOUT * 2)):
+ if (self.detectedDistro == -1) and (idx < (DETECT_TIMEOUT * 2)):
detect_str = base + ("." * ((idx % 3) + 1))
self.set_distro_labels(detect_str, detect_str)