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
(cherry picked from commit 21cfeff777)
(cherry picked from commit 66a728e8ac)
This commit is contained in:
Beniamino Galvani 2017-11-27 15:55:47 +01:00
parent e2c6a0dd6a
commit 1c9c0a4368

View file

@ -7779,6 +7779,8 @@ editor_menu_main (NmCli *nmc, NMConnection *connection)
g_object_unref (rem_con);
g_weak_ref_clear (&weak);
quit ();
/* Save history file */
save_history_cmds (nm_connection_get_uuid (connection));