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
8117a72e
Commit
8117a72e
authored
Jul 14, 2021
by
Laurent Montel
😁
Browse files
Make sure to create directory group
parent
0869c21f
Pipeline
#70642
skipped
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/kdebugsettingsdialog.cpp
View file @
8117a72e
...
...
@@ -26,6 +26,7 @@
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QDir>
#include <QFileDialog>
#include <QInputDialog>
#include <QPushButton>
...
...
@@ -214,6 +215,9 @@ void KDebugSettingsDialog::slotSaveAsGroup()
if
(
mLoadToolButton
->
groupNames
().
contains
(
trimmedName
))
{
KMessageBox
::
error
(
this
,
i18n
(
"%1 is already used as a group name.
\n
Please save as another name."
,
trimmedName
));
}
else
{
if
(
!
QDir
().
mkpath
(
groupPath
))
{
qCWarning
(
KDEBUGSETTINGS_LOG
)
<<
"Unable to create folder: "
<<
groupPath
;
}
saveRules
(
groupPath
+
QLatin1Char
(
'/'
)
+
trimmedName
,
true
);
Q_EMIT
updateLoadGroupMenu
();
}
...
...
Write
Preview
Markdown
is supported
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