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
Plasma Desktop
Commits
e255ccfa
Commit
e255ccfa
authored
Jan 18, 2021
by
Tobias Fella
Browse files
kcm/componentchooser: fix crash when no applications installed
BUG: 431651
parent
eca7f0b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
kcms/componentchooser/componentchooser.cpp
View file @
e255ccfa
...
...
@@ -99,7 +99,7 @@ void ComponentChooser::load()
void
ComponentChooser
::
select
(
int
index
)
{
if
(
m_index
==
index
)
{
if
(
m_index
==
index
&&
m_applications
.
size
()
!=
1
)
{
return
;
}
if
(
index
==
m_applications
.
length
()
-
1
)
{
...
...
kcms/componentchooser/componentchooser.h
View file @
e255ccfa
...
...
@@ -58,7 +58,7 @@ Q_SIGNALS:
protected:
QVariantList
m_applications
;
int
m_index
;
int
m_index
=
-
1
;
std
::
optional
<
int
>
m_defaultIndex
;
QString
m_mimeType
;
QString
m_type
;
...
...
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