Bug 157342

Summary: Delete menu item in Master Navigator popup menu should be disabled when no entry is selected
Product: LibreOffice Reporter: Jim Raykowski <raykowj>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: miguelangelrv, stephane.guillou
Priority: low    
Version: 4.0.0.3 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 107805    
Attachments: Demo of the bug

Description Jim Raykowski 2023-09-20 01:49:00 UTC
Steps to repro:

1. Open a new Master document. (Menu->File->New->Master Document or Ctrl+N)
2. Right-click in the Navigator content area.

Result: A popup menu is displayed showing Update and Delete menu items.

Expected result: The Delete menu item is disabled when there are no entries selected.
Comment 1 Jim Raykowski 2023-09-20 01:55:17 UTC
(In reply to Jim Raykowski from comment #0)
> Steps to repro:
> 
> 1. Open a new Master document. (Menu->File->New->Master Document or Ctrl+N)
> 2. Right-click in the Navigator content area.
> 
> Result: A popup menu is displayed showing Update and Delete menu items.
> 
> Expected result: The Delete menu item is disabled when there are no entries
> selected.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 80a24870491385ba145757bf517c5f1cf7939017
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: x11
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 2 m_a_riosv 2023-09-20 08:27:32 UTC
Maybe because there is the default 'Text', it is deleted and redone.
Verified, introducing some text and deleting.
Comment 3 Jim Raykowski 2023-10-05 08:11:09 UTC
Created attachment 190035 [details]
Demo of the bug
Comment 4 m_a_riosv 2023-10-05 19:22:03 UTC
Please attach the sample file, used for the video.
Comment 5 Stéphane Guillou (stragu) 2023-10-05 19:56:30 UTC
Reproduced in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f95c3994f0b6a82a3bc2ddfb68822b74479ae185
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

To have no selection in the Navigator, I use the Toggle Master View with the top-left button.
Right-clicking in the blank area does show "Delete", and click it has no effect.