diff --git a/syncthingmodel/syncthingdevicemodel.cpp b/syncthingmodel/syncthingdevicemodel.cpp index 3dcc0f5..006945f 100644 --- a/syncthingmodel/syncthingdevicemodel.cpp +++ b/syncthingmodel/syncthingdevicemodel.cpp @@ -207,7 +207,6 @@ QVariant SyncthingDeviceModel::data(const QModelIndex &index, int role) const case Qt::ForegroundRole: switch (index.column()) { case 1: - const SyncthingDev &dev = m_devs[static_cast(index.parent().row())]; switch (row) { case 3: if (dev.lastSeen.isNull()) { @@ -225,7 +224,6 @@ QVariant SyncthingDeviceModel::data(const QModelIndex &index, int role) const case Qt::ToolTipRole: switch (index.column()) { case 1: - const SyncthingDev &dev = m_devs[static_cast(index.parent().row())]; switch (row) { case 1: if (!dev.connectionType.isEmpty()) {