https://bugs.kde.org/show_bug.cgi?id=413473

            Bug ID: 413473
           Summary: Kile complains about failure and deletes file if one
                    tries to overwrite an existing template.
           Product: kile
           Version: 2.9.93
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: user interface
          Assignee: michel.lud...@kdemail.net
          Reporter: kishor...@gmail.com
  Target Milestone: ---

Created attachment 123492
  --> https://bugs.kde.org/attachment.cgi?id=123492&action=edit
Screenshot of the error message.

SUMMARY
If we try to overwrite (through File > Create template from document) a
previously created user template, Kile claims that creation failed and then
deletes the file the user used to create the template. However, the template
modification actually succeeds.

STEPS TO REPRODUCE
1. Create a template.
2. Create a new .tex document using this template and make some changes in it.
3. File > Create template from document.
4. Choose to overwrite the existing template.

OBSERVED RESULT
Kile throws up an error saying 'failed to create template' (see attached
screenshot). Once we dismiss the error, it then complains that the file has
been deleted by another program. However, if we check the modified template by
creating a new document, we find that the changes we made have actually been
applied to the template, contrary to what the error message claimed.

EXPECTED RESULT
Kile should not falsely claim template creation failed. It should also not
delete the document the user used to create the template.

SOFTWARE/OS VERSIONS
Linus distro: Arch Linux
KDE Plasma Version: 5.17.0
KDE Frameworks Version: 5.63.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION
If we try to create a new template (using a previously nonexistent template
name), it succeeds and does not delete the document used, as expected.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to