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
34bf07e2
Commit
34bf07e2
authored
Nov 25, 2011
by
Lamarque Souza
Browse files
Add some checks to prevent crash when PolicyKit denied connection
editing. CCBUG: 287531 (cherry picked from commit
c5beec96
)
parent
a3a91df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
settings/config/manageconnectionwidget.cpp
View file @
34bf07e2
...
...
@@ -539,18 +539,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
Supports
Markdown
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