uihelpers: Don't let empty bridge be the default selection

On rethinking, it seems a bit risky that user could create a bogus bridge
and then have all new guests choose it by default and provide no networking.
Be safe and force the user to opt in.
This commit is contained in:
Cole Robinson 2009-12-02 09:58:31 -05:00
parent 7d54481b97
commit 0f91429cfe

View File

@ -166,8 +166,8 @@ def populate_network_list(net_list, conn):
if br.is_shared():
sensitive = True
hasShared = True
if br.get_bridge():
hasShared = True
brlabel = "(%s)" % pretty_network_desc(nettype, bridge_name)
else:
bridge_name = name