Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KDE Portal for XDG Desktop
Commits
2a0b2f2b
Commit
2a0b2f2b
authored
May 31, 2022
by
Aleix Pol Gonzalez
🐧
Committed by
Aleix Pol Gonzalez
May 31, 2022
Browse files
UserInfo: Fix initialization error
The iconName is a string, not a QIcon (cherry picked from commit
1df10772
)
parent
097845bc
Pipeline
#183568
passed with stage
in 1 minute and 36 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/userinfodialog.cpp
View file @
2a0b2f2b
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment