From 7b87af16df3b98a523920eb791c30426989b52fe Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 23 Nov 2016 19:00:20 +0100 Subject: [PATCH] Properly iterate over devices --- indicator/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indicator/main.cpp b/indicator/main.cpp index 6ff449bc4..04d32c2c9 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -61,9 +61,8 @@ int main(int argc, char** argv) systray.setVisible(true); QObject::connect(&model, &DevicesModel::rowsInserted, &model, [&menu, &model](const QModelIndex& /*parent*/, int first, int last) { - qDebug() << "wooooo" << first << last; for (int i=first; i<=last; ++i) { - DeviceDbusInterface* device = model.getDevice(first); + DeviceDbusInterface* device = model.getDevice(i); auto indicator = new DeviceIndicator(device); QObject::connect(device, &DeviceDbusInterface::destroyed, indicator, &QObject::deleteLater);