Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/FwupdBackend/FwupdBackend.cpp
Context not available. | |||||
85 | FwupdResource * FwupdBackend::createDevice(FwupdDevice *device) | 85 | FwupdResource * FwupdBackend::createDevice(FwupdDevice *device) | ||
---|---|---|---|---|---|
86 | { | 86 | { | ||
87 | const QString name = QString::fromUtf8(fwupd_device_get_name(device)); | 87 | const QString name = QString::fromUtf8(fwupd_device_get_name(device)); | ||
88 | FwupdResource* res = new FwupdResource(name, nullptr); | 88 | FwupdResource* res = new FwupdResource(name, this); | ||
89 | 89 | | |||
90 | const QString deviceID = QString::fromUtf8(fwupd_device_get_id(device)); | 90 | const QString deviceID = QString::fromUtf8(fwupd_device_get_id(device)); | ||
91 | res->setId(QStringLiteral("org.fwupd.%1.device").arg(QString(deviceID).replace(QLatin1Char('/'),QLatin1Char('_')))); | 91 | res->setId(QStringLiteral("org.fwupd.%1.device").arg(QString(deviceID).replace(QLatin1Char('/'),QLatin1Char('_')))); | ||
Context not available. |