summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2014-11-29 16:11:42 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2014-12-01 11:09:14 +0100
commit824c4b9c0d8e75ee82d0656ffc4fc525fd446ceb (patch)
treebdd89fed5182c8169d68b2ac254f738d7ebd23b2 /src/virt-viewer.c
parentc0774f725a0d7866a5c5e68aaf2759fb00f26023 (diff)
downloadvirt-viewer-824c4b9c0d8e75ee82d0656ffc4fc525fd446ceb.tar.gz
virt-viewer-824c4b9c0d8e75ee82d0656ffc4fc525fd446ceb.tar.xz
virt-viewer-824c4b9c0d8e75ee82d0656ffc4fc525fd446ceb.zip
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.
Diffstat (limited to 'src/virt-viewer.c')
-rw-r--r--src/virt-viewer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/virt-viewer.c b/src/virt-viewer.c
index 16b90fa..193ef3a 100644
--- a/src/virt-viewer.c
+++ b/src/virt-viewer.c
@@ -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;
}
}