Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
3d98e717
Commit
3d98e717
authored
Sep 24, 2020
by
Enrique Melendez
Committed by
Jan Grulich
Oct 12, 2020
Browse files
Add capabilities to the constructor and hints to the call to PasswordDialog
parent
848e474e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kded/secretagent.cpp
View file @
3d98e717
...
...
@@ -50,7 +50,7 @@
#include
<KWallet>
SecretAgent
::
SecretAgent
(
QObject
*
parent
)
:
NetworkManager
::
SecretAgent
(
"org.kde.plasma.networkmanagement"
,
parent
)
:
NetworkManager
::
SecretAgent
(
"org.kde.plasma.networkmanagement"
,
NetworkManager
::
SecretAgent
::
Capability
::
VpnHints
,
parent
)
,
m_openWalletFailed
(
false
)
,
m_wallet
(
nullptr
)
,
m_dialog
(
nullptr
)
...
...
@@ -95,6 +95,7 @@ NMVariantMapMap SecretAgent::GetSecrets(const NMVariantMapMap &connection, const
m_calls
<<
request
;
processNext
();
return
NMVariantMapMap
();
}
...
...
@@ -433,7 +434,7 @@ bool SecretAgent::processGetSecrets(SecretsRequest &request) const
return
true
;
}
else
if
(
requestNew
||
(
allowInteraction
&&
!
setting
->
needSecrets
(
requestNew
).
isEmpty
())
||
(
allowInteraction
&&
userRequested
)
||
(
isVpn
&&
allowInteraction
))
{
m_dialog
=
new
PasswordDialog
(
connectionSettings
,
request
.
flags
,
request
.
setting_name
);
m_dialog
=
new
PasswordDialog
(
connectionSettings
,
request
.
flags
,
request
.
setting_name
,
request
.
hints
);
connect
(
m_dialog
,
&
PasswordDialog
::
accepted
,
this
,
&
SecretAgent
::
dialogAccepted
);
connect
(
m_dialog
,
&
PasswordDialog
::
rejected
,
this
,
&
SecretAgent
::
dialogRejected
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment