Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/FwupdBackend/FwupdBackend.cpp
Context not available. | |||||
347 | void FwupdBackend::handleError(GError *perror) | 347 | void FwupdBackend::handleError(GError *perror) | ||
---|---|---|---|---|---|
348 | { | 348 | { | ||
349 | //TODO: localise the error message | 349 | //TODO: localise the error message | ||
350 | if (!g_error_matches(perror, FWUPD_ERROR, FWUPD_ERROR_INVALID_FILE) && !g_error_matches(perror, FWUPD_ERROR, FWUPD_ERROR_NOTHING_TO_DO)) { | 350 | if (perror && !g_error_matches(perror, FWUPD_ERROR, FWUPD_ERROR_INVALID_FILE) && !g_error_matches(perror, FWUPD_ERROR, FWUPD_ERROR_NOTHING_TO_DO)) { | ||
351 | const QString msg = QString::fromUtf8(perror->message); | 351 | const QString msg = QString::fromUtf8(perror->message); | ||
352 | QTimer::singleShot(0, this, [this, msg](){ | 352 | QTimer::singleShot(0, this, [this, msg](){ | ||
353 | Q_EMIT passiveMessage(msg); | 353 | Q_EMIT passiveMessage(msg); | ||
Context not available. |