Bug 365693

Summary: Can't open saved template but template file exist
Product: [Applications] krita Reporter: deadelf79
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: freebox64, halla, m999, maildileepnow, masked_retriever
Priority: NOR    
Version First Reported In: 3.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
URL: http://f1.s.qip.ru/IRG4yHEz.png
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Removes trailing space in path creation for the template

Description deadelf79 2016-07-14 18:30:47 UTC
Krita can't open early saved template from AppData and show error: "Can't open, file doesn't exist". When I open AppData, I see my file there. It exist! But Krita can't see this.

Reproducible: Always

Steps to Reproduce:
1.File>New>User settings - create file with 3 layers
2.File>Save image as template, then enter random name, click Ok
3.File>New>My Templates Dir, then select template that created on step 2.

Actual Results:  
Can't open
C:\Users\User\AppData\Roaming\krita\templates\Шаблоны\.source\file.kra doesn't exist

Expected Results:  
Create new image from template
Comment 1 masked_retriever 2016-07-16 23:28:34 UTC
Can confirm, further examination shows that the file was saved correctly, but Krita is looking for .source\ file.kra instead.  This is probably just a typo somewhere in the code and should be an easy fix!
Comment 2 masked_retriever 2016-07-17 00:12:27 UTC
(In my confirmation case, bug was found under Krita 3 dev build krita-3.0-7dc551d-x86_64.appimage for Ubuntu.)
Comment 3 mvowada 2016-07-17 09:53:30 UTC
I can confirm this too (Ubuntu 14.04 Unity with krita-3.0-x86_64.appimage). The error says:

"Could not open 
Reason: The file /home/*username*/.local/share/krita/templates/My-Templates/.source/test.kra does not exist."
Comment 4 dileep 2016-07-18 06:51:04 UTC
yes.. was having the same problem.

For now I work around by manually saving the .kra file in the ".source" folder.
Comment 5 Joseph-Eugene Winzer 2016-08-19 01:34:35 UTC
Created attachment 100674 [details]
Removes trailing space in path creation for the template
Comment 6 Halla Rempt 2016-08-20 09:20:29 UTC
Thanks for the patch! I cannot believe how blind I was -- I'll push it now.
Comment 7 Halla Rempt 2016-08-20 09:21:46 UTC
Git commit d2e66ccc85a7818a46cc391fd30449389043f514 by Boudewijn Rempt.
Committed on 20/08/2016 at 09:21.
Pushed by rempt into branch 'master'.

Patch by Joe (joewinzer@googlemail.com). Thanks!

M  +1    -1    libs/ui/KisTemplateCreateDia.cpp

http://commits.kde.org/krita/d2e66ccc85a7818a46cc391fd30449389043f514