From 21cfeff7776cfaf2b64edca0fdbc10bff93730a8 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Mon, 27 Nov 2017 15:55:47 +0100 Subject: [PATCH] cli: exit from main loop after 'quit' editor command When we stop processing the editor command loop (after a 'quit' command) we must quit the GLib main loop. https://bugzilla.redhat.com/show_bug.cgi?id=1517401 --- clients/cli/connections.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index b754f4135..d4ad9e916 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -7563,6 +7563,8 @@ editor_menu_main (NmCli *nmc, NMConnection *connection, const char *connection_t g_free (menu_ctx.valid_props_str); g_weak_ref_clear (&weak); + quit (); + /* Save history file */ save_history_cmds (nm_connection_get_uuid (connection));