From kde-commits Thu Sep 30 17:02:22 2010 From: =?utf-8?q?Gustavo=20P=2E=20Boiko?= Date: Thu, 30 Sep 2010 17:02:22 +0000 To: kde-commits Subject: playground/network/telepathy-accounts-kcm/src/KCMTelepathyAccounts Message-Id: <20100930170222.1CD1AAC88E () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=128586619227515 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::const_iterator paramIter; + paramIter = d->advancedParameterValues.constBegin(); + while (paramIter != d->advancedParameterValues.constEnd()) + { + d->parameterValues[paramIter.key()->name()] = paramIter.value(); + paramIter++; + } + break; } else