Commit 4bbef24b authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

fwupd: readability

parent b975b97b
......@@ -92,12 +92,12 @@ void FwupdSourcesBackend::populateSources()
const QString id = QString::fromUtf8(fwupd_remote_get_id(remote));
if(id.isEmpty())
continue;
bool status = !fwupd_remote_get_enabled(remote);
QStandardItem* it = new QStandardItem(id);
it->setData(id, AbstractSourcesBackend::IdRole);
it->setData(QVariant(QString::fromUtf8(fwupd_remote_get_title(remote))), Qt::ToolTipRole);
it->setCheckable(true);
it->setCheckState(status ? Qt::Unchecked : Qt::Checked);
it->setCheckState(fwupd_remote_get_enabled(remote) ? Qt::Checked : Qt::Unchecked);
m_sources->appendRow(it);
}
}
......
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