Fix issue spotted by modeltest
Off by 1 index... :(
This commit is contained in:
parent
a4ccc93518
commit
e592081094
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ void DevicesModel::receivedDeviceList(QDBusPendingCallWatcher* watcher)
|
|||
|
||||
Q_ASSERT(m_deviceList.isEmpty());
|
||||
const QStringList deviceIds = pendingDeviceIds.value();
|
||||
beginInsertRows(QModelIndex(), 0, deviceIds.count());
|
||||
beginInsertRows(QModelIndex(), 0, deviceIds.count()-1);
|
||||
Q_FOREACH(const QString& id, deviceIds) {
|
||||
m_deviceList.append(new DeviceDbusInterface(id, this));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue