Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Network Management
Commits
c5beec96
Commit
c5beec96
authored
Nov 25, 2011
by
Lamarque Souza
Browse files
Add some checks to prevent crash when PolicyKit denied connection
editing. CCBUG: 287531
parent
4b4b4883
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings/config/manageconnectionwidget.cpp
View file @
c5beec96
...
...
@@ -541,18 +541,24 @@ void ManageConnectionWidget::editGotSecrets(bool valid, const QString &errorMess
KMessageBox
::
error
(
this
,
i18n
(
"Error"
));
else
KMessageBox
::
error
(
this
,
errorMessage
);
}
kDebug
()
<<
uuid
<<
mEditConnection
->
uuid
();
if
(
mEditConnection
&&
mEditConnection
->
uuid
()
==
uuid
)
{
delete
mEditConnection
;
mEditConnection
=
0
;
return
;
}
}
if
(
uuid
!=
mEditConnection
->
uuid
())
{
if
(
!
mEditConnection
||
mEditConnection
->
uuid
()
!=
uuid
)
{
return
;
}
kDebug
()
<<
uuid
<<
mEditConnection
->
uuid
();
Knm
::
Connection
*
result
=
mEditor
->
editConnection
(
mEditConnection
);
//starts editor window
if
(
result
)
{
mSystemSettings
->
updateConnection
(
mEditConnection
->
uuid
().
toString
(),
result
);
}
delete
mEditConnection
;
mEditConnection
=
0
;
}
...
...
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