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
This commit is contained in:
Beniamino Galvani
2017-11-27 15:55:47 +01:00
parent 2e974baa15
commit 21cfeff777

View File

@@ -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));