From 8da021cf3a930030e269c4866d7953ef64e02114 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 16 Jan 2013 18:31:22 -0500 Subject: [PATCH] create: Fix OS autodetect for URLs --- src/virtManager/create.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/virtManager/create.py b/src/virtManager/create.py index db441bf99..18f72aca9 100644 --- a/src/virtManager/create.py +++ b/src/virtManager/create.py @@ -1130,8 +1130,7 @@ class vmmCreate(vmmGObjectUI): # If the url_entry has focus, don't fire detect_media_os, it means # the user is probably typing self.mediaDetected = False - if (self.widget("install-url-box").get_child().flags() & - Gtk.HAS_FOCUS): + if self.widget("install-url-box").get_child().has_focus(): return self.detect_media_os()