Bug 134140 - Disable context menu item Delete for Impress templates
Summary: Disable context menu item Delete for Impress templates
Status: RESOLVED DUPLICATE of bug 138246
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Template-Manager
  Show dependency treegraph
 
Reported: 2020-06-19 07:11 UTC by NSO LibreOffice Team
Modified: 2021-01-18 07:03 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Impress templates in template library cannot be deleted (143.01 KB, image/png)
2020-06-19 07:16 UTC, NSO LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NSO LibreOffice Team 2020-06-19 07:11:42 UTC
Description:
I'm using LibreOffice 6.4.4.2 in the China locale and finding a very strange bug. I'll try to be as clear as possible in the description.
Open Template Manager,then Right click to delete the built-in template,and Prompt cannot be deleted,and It is recommended to delete the built-in template.

Steps to Reproduce:
1.Open Template Manager
2.Right click to delete the built-in template
3.Prompt cannot be deleted
4.It is recommended to delete the built-in template

Actual Results:
Prompt cannot be deleted

Expected Results:
It is recommended to delete the built-in template


Reproducible: Always


User Profile Reset: No



Additional Info:
No other information found that may be relevant
Comment 1 NSO LibreOffice Team 2020-06-19 07:16:46 UTC
Created attachment 162198 [details]
Impress templates in template library cannot be deleted
Comment 2 Buovjaga 2020-10-30 13:20:21 UTC
Design team: what do you think? Delete is shown in the context menu, but indeed, the templates can not be deleted. Is this a deliberate decision?

If we want to prevent deleting, the menu item should be disabled.
Comment 3 Heiko Tietze 2020-10-30 13:41:27 UTC
Shipped files are not placed in the user space and require administrator privileges to delete. I would disable the command in this case.

The same applies also to galleries, for example.
Comment 4 sdc.blanco 2021-01-18 01:08:17 UTC
(In reply to Buovjaga from comment #2)
> If we want to prevent deleting, the menu item should be disabled.
This commit achieves that intention by removing its appearance.

https://git.libreoffice.org/core/commit/86f3fa919a6de6767177193d5b7714f8f6dbd5c4
Comment 5 Buovjaga 2021-01-18 07:03:14 UTC

*** This bug has been marked as a duplicate of bug 138246 ***