Commit 1df10772 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

UserInfo: Fix initialization error

The iconName is a string, not a QIcon
parent 0cc59268
Pipeline #183566 passed with stage
in 1 minute and 4 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