Bug 163823 - Allow deletion of a master slide in-use and its using slides, via a confirmation dialog
Summary: Allow deletion of a master slide in-use and its using slides, via a confirmat...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Slide-Sorter
  Show dependency treegraph
 
Reported: 2024-11-08 19:20 UTC by Eyal Rozenberg
Modified: 2024-11-21 07:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2024-11-08 19:20:56 UTC
At the moment, master slides with actual slides using them cannot be deleted: Pressing the Delete key does nothing, and the "Delete Master" is not on the context menu.

But - why not offer the user the opportunity to do this? It seems we could pop up a dialog saying something like:

----------[Master slide in use]---------------

This master slide is in use in the presentation, by slides 

[ perhaps list the slides using the master somehow?]

Delete master and all slides using it?

         Yes, Delete | No, Abort
----------------------------------------------

or something like that, not bikeshedding the dialog specifics.

We could offer a third option: Switchng the using slides to another master, all at once.
Comment 1 Rafael Lima 2024-11-09 13:37:42 UTC
I feel that deleting all slides using some master slide is too drastic and may result in the deletion of all slides.

Maybe we can offer the user to chose a new master to apply to those slides whose master is being deleted.
Comment 2 Eyal Rozenberg 2024-11-09 16:32:59 UTC
(In reply to Rafael Lima from comment #1)
> Maybe we can offer the user to chose a new master to apply to those slides
> whose master is being deleted.

That's a possibility too. But how _would_ a user delete all slides with a specific master?
Comment 3 Cor Nouws 2024-11-20 14:30:18 UTC
(In reply to Eyal Rozenberg from comment #2)
> That's a possibility too. But how _would_ a user delete all slides with a
> specific master?

(In reply to Eyal Rozenberg from comment #0)
> ----------[Master slide in use]---------------
> Delete master and all slides using it?
> 
>          Yes, Delete | No, Abort

:)
Comment 4 Cor Nouws 2024-11-20 14:31:40 UTC
(In reply to Rafael Lima from comment #1)
> Maybe we can offer the user to chose a new master to apply to those slides
> whose master is being deleted.
Alternatively 'Default'.

But no principal objection to this proposal.
Comment 5 Heiko Tietze 2024-11-21 07:53:16 UTC
We discussed the topic in the design meeting. 

While the current solution to block deletion unless a master is not used by any slide is simple and efficient (besides the command is hidden and not disabled), the actual use case is about switching a master slide. The alternative solution could be to search for and replace similar to the approach for styles in Writer.

Nevertheless, people agreed to the request. We could either ask for confirmation to delete the associated slides or provide a selection of all other master slides to pick one as a replacement.