cli: confirm connection saving when autoconnect=yes (rh #953296)

Ask for confirmation in these cases:
* autoconnect=yes and connection has not been saved yet
* autoconnect=yes, but saved connection had autoconnect=no

The confirmation can be switched off with
nmcli> nmcli save-confirmation no
This commit is contained in:
Jiří Klimeš
2013-07-23 14:25:52 +02:00
parent 6f633a678a
commit 18817877ad
3 changed files with 54 additions and 5 deletions

View File

@@ -125,6 +125,7 @@ typedef struct _NmCli {
gboolean nocheck_ver; /* Don't check nmcli and NM versions: option '--nocheck' */
gboolean ask; /* Ask for missing parameters: option '--ask' */
gboolean editor_status_line; /* Whether to display status line in connection editor */
gboolean editor_save_confirmation; /* Whether to ask for confirmation on saving connections with 'autoconnect=yes' */
NmcTermColor editor_prompt_color; /* Color of prompt in connection editor */
} NmCli;