Commit 96b79158 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

Maemo: Make device config list model a bit more robust.

Don't try to be clever about when to emit the currentChanged() signal.
parent 4923ca3f
......@@ -66,12 +66,9 @@ void MaemoDeviceConfigListModel::setupList()
void MaemoDeviceConfigListModel::setCurrentIndex(int index)
{
const quint64 idForIndex = m_devConfigs.at(index).internalId;
if (idForIndex != m_currentId) {
m_currentId = idForIndex;
m_currentIndex = index;
emit currentChanged();
}
m_currentIndex = index;
m_currentId = m_devConfigs.at(m_currentIndex).internalId;
emit currentChanged();
}
void MaemoDeviceConfigListModel::resetCurrentIndex()
......
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