create: Show a warning if no network is selected (bz 1267377)

This commit is contained in:
Cole Robinson 2015-11-02 14:42:42 -05:00
parent 90816a6263
commit 50b1b18ec4

View File

@ -1468,7 +1468,9 @@ class vmmCreate(vmmGObjectUI):
self.widget("netdev-warn-label").set_markup( self.widget("netdev-warn-label").set_markup(
"<small>%s</small>" % msg) "<small>%s</small>" % msg)
if not can_pxe and pxe_install: if no_network:
_show_netdev_warn(_("No network selected"))
elif not can_pxe and pxe_install:
_show_netdev_warn(_("Network selection does not support PXE")) _show_netdev_warn(_("Network selection does not support PXE"))