summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Zaborowski <andrew.zaborowski@intel.com>2018-09-03 06:36:41 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-11-26 15:05:52 +0100
commit3214d70d48c5939f6178e47606b0e8538cc8e8a1 (patch)
tree8e93b53c3e15a16cdfad48d8bef26b192464d9e5
parent89331ca0f8632b4ccad918db36ff949eb09369e0 (diff)
downloadnetwork-manager-applet-3214d70d48c5939f6178e47606b0e8538cc8e8a1.tar.gz
libnma: use setting name from request to fill wifi dialog fields
Use the setting name given by NM in the agent request to request current values of secrets we will be letting the user edit in the wifi dialogs, if provided.
-rw-r--r--src/libnma/nma-wifi-dialog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libnma/nma-wifi-dialog.c b/src/libnma/nma-wifi-dialog.c
index c4dca8f1..297e950e 100644
--- a/src/libnma/nma-wifi-dialog.c
+++ b/src/libnma/nma-wifi-dialog.c
@@ -997,7 +997,14 @@ security_combo_init (NMAWifiDialog *self, gboolean secrets_only,
* will already be populated with secrets. If no connection was given,
* then we need to get any existing secrets to populate the dialog with.
*/
- setting_name = priv->connection ? nm_connection_need_secrets (priv->connection, NULL) : NULL;
+ if (priv->connection) {
+ if (secrets_setting_name)
+ setting_name = secrets_setting_name;
+ else
+ setting_name = nm_connection_need_secrets (priv->connection, NULL);
+ } else
+ setting_name = NULL;
+
if (setting_name && NM_IS_REMOTE_CONNECTION (priv->connection)) {
GetSecretsInfo *info;