[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/network/telepathy-accounts-kcm/src/KCMTelepathyAccounts
From:       Gustavo P. Boiko <gustavo.boiko () kdemail ! net>
Date:       2010-09-30 17:02:22
Message-ID: 20100930170222.1CD1AAC88E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1181306 by boiko:

Make sure the values are properly loaded if the advanced dialog is opened twice


 M  +9 -0      account-edit-widget.cpp  


--- trunk/playground/network/telepathy-accounts-kcm/src/KCMTelepathyAccounts/account-edit-widget.cpp \
#1181305:1181306 @@ -188,6 +188,15 @@
 
             // at this point the values are fine
             d->advancedParameterValues = advancedWidget->parameterValues();
+            // update the parameter values in case the dialog is opened again
+            QMap<Tp::ProtocolParameter*,QVariant>::const_iterator paramIter;
+            paramIter = d->advancedParameterValues.constBegin();
+            while (paramIter != d->advancedParameterValues.constEnd())
+            {
+                 d->parameterValues[paramIter.key()->name()] = paramIter.value();
+                 paramIter++;
+            }
+
             break;
         }
         else


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic