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
Graphics
Krita
Commits
3e3f0d0a
Commit
3e3f0d0a
authored
Dec 22, 2018
by
Anna Medonosova
Browse files
BUG:402342
Fix opening templates from command line (--template)
parent
b1c8ba60
Changes
1
Hide whitespace changes
Inline
Side-by-side
libs/ui/KisApplication.cpp
View file @
3e3f0d0a
...
...
@@ -757,6 +757,9 @@ bool KisApplication::createNewDocFromTemplate(const QString &fileName, KisMainWi
QString
templateName
=
templateInfo
.
readUrl
();
QUrl
templateURL
;
templateURL
.
setPath
(
templateBase
.
adjusted
(
QUrl
::
RemoveFilename
|
QUrl
::
StripTrailingSlash
).
path
()
+
'/'
+
templateName
);
if
(
templateURL
.
scheme
().
isEmpty
())
{
templateURL
.
setScheme
(
"file"
);
}
KisMainWindow
::
OpenFlags
batchFlags
=
d
->
batchRun
?
KisMainWindow
::
BatchMode
:
KisMainWindow
::
None
;
if
(
mainWindow
->
openDocument
(
templateURL
,
KisMainWindow
::
Import
|
batchFlags
))
{
...
...
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