[networkmanagement] settings/config: Use the return value of editConnection method.

Gökçen Eraslan gokcen at pardus.org.tr
Fri May 6 12:52:14 CEST 2011


Git commit e1a41cb72ac5f0bca0bcdf95ba15709bfd72f4e5 by Gökçen Eraslan.
Committed on 06/05/2011 at 15:43.
Pushed by gokcen into branch 'master'.

Use the return value of editConnection method.

Return value of editConnection method must be used to get connection
changes. This also fixes the bug which is the password dialog pops up
after users click to Cancel without changing anything in edit dialog.

CCMAIL: kde-networkmanager at kde.org
CCMAIL: arvidjaar at gmail.com

M  +1    -1    settings/config/manageconnectionwidget.cpp     

http://commits.kde.org/networkmanagement/e1a41cb72ac5f0bca0bcdf95ba15709bfd72f4e5

diff --git a/settings/config/manageconnectionwidget.cpp b/settings/config/manageconnectionwidget.cpp
index b7ca006..6d3dd44 100644
--- a/settings/config/manageconnectionwidget.cpp
+++ b/settings/config/manageconnectionwidget.cpp
@@ -576,7 +576,7 @@ void ManageConnectionWidget::editGotSecrets(bool valid, const QString &errorMess
     if (!con)
         return;
 
-    mEditor->editConnection(con); //starts editor window
+    con = mEditor->editConnection(con); //starts editor window
     if (con)
     {
         if (oldScope == con->scope()) {


More information about the kde-networkmanager mailing list