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
ef3f1255
Commit
ef3f1255
authored
May 04, 2017
by
Laurent Montel
Browse files
Fix Bug 379510 - Event templates do not work
FIXED-IN: 5.5.1
BUG: 379510
parent
5d57c001
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/incidencedialog.cpp
View file @
ef3f1255
...
...
@@ -296,14 +296,14 @@ void IncidenceDialogPrivate::loadTemplate(const QString &templateName)
const
QString
fileName
=
QStandardPaths
::
locate
(
QStandardPaths
::
GenericDataLocation
,
QStringLiteral
(
"korganizer/templates/"
)
+
QStringLiteral
(
"
/
korganizer/templates/"
)
+
typeToString
(
mEditor
->
type
())
+
QLatin1Char
(
'/'
)
+
templateName
);
if
(
fileName
.
isEmpty
())
{
KMessageBox
::
error
(
q
,
i18nc
(
"@info"
,
"Unable to find template '%1'."
,
fil
eName
));
i18nc
(
"@info"
,
"Unable to find template '%1'."
,
templat
eName
));
return
;
}
...
...
@@ -384,7 +384,7 @@ void IncidenceDialogPrivate::saveTemplate(const QString &templateName)
}
QString
fileName
=
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)
+
QStringLiteral
(
"korganizer/templates/"
)
+
typeToString
(
mEditor
->
type
())
+
QLatin1Char
(
'/'
);
QStringLiteral
(
"
/
korganizer/templates/"
)
+
typeToString
(
mEditor
->
type
())
+
QLatin1Char
(
'/'
);
QDir
().
mkpath
(
fileName
);
fileName
+=
templateName
;
...
...
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