Commit 3b734677 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

UserInfo: Fix initialization error

The iconName is a string, not a QIcon


(cherry picked from commit 1df10772)
parent cd8275c7
Pipeline #183571 passed with stage
in 1 minute and 3 seconds
......@@ -38,7 +38,7 @@ UserInfoDialog::UserInfoDialog(const QString &reason, QObject *parent)
if (QFileInfo::exists(m_userInterface->iconFile())) {
props.insert(QStringLiteral("iconName"), m_userInterface->iconFile());
} else {
props.insert(QStringLiteral("iconName"), QIcon::fromTheme(QStringLiteral("user-identity")));
props.insert(QStringLiteral("iconName"), QStringLiteral("user-identity"));
}
create("qrc:/UserInfoDialog.qml", props);
}
......
Supports Markdown
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