Commit aee1ead3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

fwupd: Properly check that a string is empty

parent d71d3889
......@@ -30,7 +30,7 @@ void FwupdTransaction::install()
if(m_app->isDeviceLocked())
{
QString device_id = m_app->deviceId();
if(device_id.isNull()) {
if(device_id.isEmpty()) {
qWarning() << "Fwupd Error: No Device ID set, cannot unlock device " << this << m_app->name();
} else if(!fwupd_client_unlock(m_backend->client, device_id.toUtf8().constData(),nullptr, &error)) {
m_backend->handleError(error);
......
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