Skip to content
Snippets Groups Projects
Commit e2dc7a1d authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Fix device configuration update glitches.

Task-number: https://projects.maemo.org/bugzilla/show_bug.cgi?id=192729
Reviewed-by: kh1
parent fb1f2069
No related branches found
No related tags found
No related merge requests found
......@@ -66,9 +66,10 @@ void MaemoDeviceConfigListModel::setupList()
void MaemoDeviceConfigListModel::setCurrentIndex(int index)
{
if (index != m_currentIndex) {
const quint64 idForIndex = m_devConfigs.at(index).internalId;
if (idForIndex != m_currentId) {
m_currentId = idForIndex;
m_currentIndex = index;
m_currentId = m_devConfigs.at(m_currentIndex).internalId;
emit currentChanged();
}
}
......
......@@ -202,6 +202,7 @@ void MaemoSettingsWidget::display(const MaemoDeviceConfig &devConfig)
otherConfig->server.timeout = devConfig.server.timeout;
otherConfig->server.pwd = devConfig.server.pwd;
otherConfig->server.privateKeyFile = devConfig.server.privateKeyFile;
otherConfig->internalId = devConfig.internalId;
if (devConfig.server.authType == Core::SshConnectionParameters::AuthByPwd)
m_ui->passwordButton->setChecked(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment