create: Fix OS autodetect for URLs

This commit is contained in:
Cole Robinson 2013-01-16 18:31:22 -05:00
parent 8c479dbdd3
commit 8da021cf3a

View File

@ -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()