<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>398877</bug_id>
          
          <creation_ts>2018-09-20 15:36:45 +0000</creation_ts>
          <short_desc>[Recent Documents/Open Recent] bug with Templates</short_desc>
          <delta_ts>2018-10-11 08:23:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Usability</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David REVOY">info</reporter>
          <assigned_to name="Eoin O&apos;Neill">eoinoneill1991</assigned_to>
          <cc>halla</cc>
          
          <cf_commitlink>https://commits.kde.org/krita/371ea66850c8ad64d25ba13b322fef8a6a8b4d1c</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1783492</commentid>
    <comment_count>0</comment_count>
    <who name="David REVOY">info</who>
    <bug_when>2018-09-20 15:36:45 +0000</bug_when>
    <thetext>Hi!
On the new Krita greating background, in the column &quot;Recent Documents&quot; I can see the Krita template I&apos;m using and edit the template directly from here. I can also reproduce with File &gt; Open Recent. 

How to reproduce:
=================
1. Open Krita.
2. Create a new document from a template (eg. Comic template)
3. Close document without saving.

Result:
=======
In the background of the app, or in File &gt; Open Recent you&apos;ll see BD-EuroTemplate.kra file or Comics-USTemplate.kra listed. If you click again on this file all edition done will overwrite the source template directly (it can even trigger permission issue if the template is installed in a protected system path like /usr/share/krita/krita/templates/comics/.source/ )

Expected:
=========
Exclude the Template files from the &apos;Recent&apos; list; the template files themselves are never what I want to edit or is working on via this menu. I report this bug because you can guess I accidentally overwritten one of my precious template this way, that&apos;s why I report it as a bug. (no worry, I had a backup).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1783495</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-09-20 15:39:33 +0000</bug_when>
    <thetext>I&apos;ve seen this happen, but only from the corner of my eye when I was investigating another bug, so confirmed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792987</commentid>
    <comment_count>2</comment_count>
    <who name="Eoin O&apos;Neill">eoinoneill1991</who>
    <bug_when>2018-10-10 09:39:07 +0000</bug_when>
    <thetext>Git commit cf6a4209b832595fec51844d7bdaaab80b10fb94 by Eoin O&apos;Neill.
Committed on 10/10/2018 at 09:38.
Pushed by eoinoneill into branch &apos;master&apos;.

Template Files No Longer Added to &apos;Recent Documents&apos; List on the Krita Greeting Page

This is a fix intended to prevent any unintentional edits to Krita&apos;s template files.

M  +8    -0    libs/ui/KisMainWindow.cpp

https://commits.kde.org/krita/cf6a4209b832595fec51844d7bdaaab80b10fb94</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793337</commentid>
    <comment_count>3</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-10-11 08:23:19 +0000</bug_when>
    <thetext>Git commit 371ea66850c8ad64d25ba13b322fef8a6a8b4d1c by Boudewijn Rempt, on behalf of Eoin O&apos;Neill.
Committed on 11/10/2018 at 07:52.
Pushed by rempt into branch &apos;krita/4.1&apos;.

Template Files No Longer Added to &apos;Recent Documents&apos; List on the Krita Greeting Page

This is a fix intended to prevent any unintentional edits to Krita&apos;s template files.

(cherry picked from commit cf6a4209b832595fec51844d7bdaaab80b10fb94)

M  +8    -0    libs/ui/KisMainWindow.cpp

https://commits.kde.org/krita/371ea66850c8ad64d25ba13b322fef8a6a8b4d1c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>