Do not show twice error dialog when no VM are found

When running virt-viewer without argument, and no VM are found, you get
two error dialogs. Only one is enough.
This commit is contained in:
Marc-André Lureau 2014-11-29 16:11:42 +01:00
parent c0774f725a
commit 824c4b9c0d

View File

@ -663,7 +663,6 @@ virt_viewer_initial_connect(VirtViewerApp *app, GError **error)
} else {
dom = choose_vm(&priv->domkey, priv->conn, &err);
if (dom == NULL && err != NULL) {
virt_viewer_app_simple_message_dialog(app, err->message);
goto cleanup;
}
}