Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
f219748f
Commit
f219748f
authored
Jun 06, 2022
by
Alexander Lohnau
💬
Browse files
Fix missing index validity check for cursortheme
BUG: 454829
(cherry picked from commit
bb678094
)
parent
3e652b30
Pipeline
#189084
passed with stage
in 7 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kcms/cursortheme/kcmcursortheme.cpp
View file @
f219748f
...
...
@@ -286,7 +286,7 @@ int CursorThemeConfig::cursorThemeIndex(const QString &cursorTheme) const
QString
CursorThemeConfig
::
cursorThemeFromIndex
(
int
index
)
const
{
QModelIndex
idx
=
m_themeProxyModel
->
index
(
index
,
0
);
return
m_themeProxyModel
->
theme
(
idx
)
->
name
();
return
idx
.
isValid
()
?
m_themeProxyModel
->
theme
(
idx
)
->
name
()
:
QString
()
;
}
void
CursorThemeConfig
::
save
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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