virt-manager: don't autostart other connection if --show-* was specified

Broken by commit a9bc56add3.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1377244

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2017-01-17 15:34:14 +01:00
parent b4239b7538
commit ceda7a5dbf
1 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,9 @@ def main():
if show_window and options.uri is None: if show_window and options.uri is None:
raise RuntimeError("can't use --show-* options without --connect") raise RuntimeError("can't use --show-* options without --connect")
if show_window:
options.skip_autostart = True
# Hook libvirt events into glib main loop # Hook libvirt events into glib main loop
LibvirtGLib.init(None) LibvirtGLib.init(None)
LibvirtGLib.event_register() LibvirtGLib.event_register()