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
PIM
PIM IncidenceEditor
Commits
446ca91e
Commit
446ca91e
authored
Apr 14, 2017
by
Laurent Montel
Browse files
Use default constructor
parent
a46e0892
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/incidencedialog.cpp
View file @
446ca91e
...
...
@@ -385,7 +385,7 @@ void IncidenceDialogPrivate::saveTemplate(const QString &templateName)
QString
fileName
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"korganizer/templates/"
)
+
typeToString
(
mEditor
->
type
())
+
QLatin1Char
(
'/'
);
QDir
::
root
().
mkpath
(
fileName
);
QDir
().
mkpath
(
fileName
);
fileName
+=
templateName
;
KCalCore
::
ICalFormat
format
;
...
...
@@ -401,7 +401,7 @@ void IncidenceDialogPrivate::storeTemplatesInConfig(const QStringList &templateN
const
QString
defaultPath
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"korganizer/templates/"
)
+
typeToString
(
mEditor
->
type
())
+
QLatin1Char
(
'/'
);
QDir
::
root
().
mkpath
(
defaultPath
);
QDir
().
mkpath
(
defaultPath
);
for
(
const
QString
&
tmpl
:
origTemplates
)
{
if
(
!
templateNames
.
contains
(
tmpl
))
{
const
QString
fileName
=
defaultPath
+
tmpl
;
...
...
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