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