Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma applet for NetworkManager
Commits
ebfbe935
Commit
ebfbe935
authored
Jun 01, 2017
by
Jan Grulich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Openconnect: make sure we accept the dialog
BUG:380299
parent
0355bee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vpn/openconnect/openconnectauth.cpp
vpn/openconnect/openconnectauth.cpp
+7
-1
No files found.
vpn/openconnect/openconnectauth.cpp
View file @
ebfbe935
...
...
@@ -253,7 +253,13 @@ void OpenconnectAuthWidget::readSecrets()
void
OpenconnectAuthWidget
::
acceptDialog
()
{
QDialog
*
dialog
=
qobject_cast
<
QDialog
*>
(
parentWidget
());
// Find top-level widget as this should be the QDialog itself
QWidget
*
widget
=
parentWidget
();
while
(
widget
->
parentWidget
()
!=
nullptr
)
{
widget
=
widget
->
parentWidget
();
}
QDialog
*
dialog
=
qobject_cast
<
QDialog
*>
(
widget
);
if
(
dialog
)
{
dialog
->
accept
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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