diff options
Diffstat (limited to 'src/virt-viewer-app.c')
-rw-r--r-- | src/virt-viewer-app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index d4ce06a..42c2ac8 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -259,7 +259,7 @@ virt_viewer_app_save_config(VirtViewerApp *self) g_warning("failed to create config directory"); g_free(dir); - if (priv->uuid && priv->guest_name) { + if (priv->uuid && priv->guest_name && g_key_file_has_group(priv->config, priv->uuid)) { // if there's no comment for this uuid settings group, add a comment // with the vm name so user can make sense of it later. gchar *comment = g_key_file_get_comment(priv->config, priv->uuid, NULL, &error); |