mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-06 06:00:54 +00:00
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:
parent
c0774f725a
commit
824c4b9c0d
@ -663,7 +663,6 @@ virt_viewer_initial_connect(VirtViewerApp *app, GError **error)
|
|||||||
} else {
|
} else {
|
||||||
dom = choose_vm(&priv->domkey, priv->conn, &err);
|
dom = choose_vm(&priv->domkey, priv->conn, &err);
|
||||||
if (dom == NULL && err != NULL) {
|
if (dom == NULL && err != NULL) {
|
||||||
virt_viewer_app_simple_message_dialog(app, err->message);
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user