Commit e572059e authored by Christian Kandeler's avatar Christian Kandeler
Browse files

RemoteLinux: Fix bug in saving device configurations.



At the time we start writing the array, we do not know yet how many
device configurations we are going to save.

Change-Id: I4dbf404f86ec87a90fa84bff3eacff7bffb4b510
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 7cf99d20
......@@ -131,7 +131,7 @@ void LinuxDeviceConfigurations::save()
settings->beginGroup(SettingsGroup);
settings->setValue(IdCounterKey, d->nextId);
settings->setValue(DefaultKeyFilePathKey, d->defaultSshKeyFilePath);
settings->beginWriteArray(ConfigListKey, d->devConfigs.count());
settings->beginWriteArray(ConfigListKey);
int skippedCount = 0;
for (int i = 0; i < d->devConfigs.count(); ++i) {
const LinuxDeviceConfiguration::ConstPtr &devConf = d->devConfigs.at(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment