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
Utilities
KDebugSettings
Commits
36913c70
Commit
36913c70
authored
Dec 22, 2020
by
Laurent Montel
😁
Browse files
Don't save name as empty name
parent
aade0828
Pipeline
#45052
passed with stage
in 10 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kdebugsettingsdialog.cpp
View file @
36913c70
...
...
@@ -217,8 +217,9 @@ void KDebugSettingsDialog::slotSaveAsGroup()
{
const
QString
groupPath
=
LoadGroupMenu
::
defaultGroupPath
();
const
QString
name
=
QInputDialog
::
getText
(
this
,
i18n
(
"Group Name"
),
i18n
(
"Name"
));
if
(
!
name
.
isEmpty
())
{
saveRules
(
groupPath
+
QLatin1Char
(
'/'
)
+
name
,
true
);
const
QString
trimmedName
=
name
.
trimmed
();
if
(
!
trimmedName
.
isEmpty
())
{
saveRules
(
groupPath
+
QLatin1Char
(
'/'
)
+
trimmedName
,
true
);
Q_EMIT
updateLoadGroupMenu
();
}
}
...
...
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