Bug 87544 - MENUS: Edit > Paste entry enabled when in Read-Only Mode
Summary: MENUS: Edit > Paste entry enabled when in Read-Only Mode
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Main-Menu Paste Read-Only
  Show dependency treegraph
 
Reported: 2014-12-21 00:24 UTC by Yousuf Philips (jay) (retired)
Modified: 2025-10-23 11:11 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 Yousuf Philips (jay) (retired) 2014-12-21 00:24:24 UTC
Steps:
1) Open a document as read-only (there is a read-only checkbox in the open dialog)
2) Notice that the paste button in the toolbar is disabled
3) Open the 'Edit' menu and the paste entry is enabled

Version: 4.5.0.0.alpha0+
Build ID: e570cd7a293ceee175949dcc9656cdf776ae3c37
TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2014-12-12_18:49:54
Comment 1 MM 2014-12-21 00:56:10 UTC
Confirmed under mint 17 x64 with Version: 4.3.5.2
Unconfirmed under windows 7 x64 with Version: 4.3.5.2

Under windows the menuitem is disabled, under linux enabled.
Comment 2 QA Administrators 2016-01-17 20:03:37 UTC Comment hidden (obsolete)
Comment 3 Maxim Monastirsky 2016-01-20 22:23:11 UTC
Yes, under Linux we enable .uno:Paste menu item _always_. The reason is explained in a comment inside menubarmanager.cxx:

http://opengrok.libreoffice.org/xref/core/framework/source/uielement/menubarmanager.cxx#409

Although I'm not sure why we don't do the same for the toolbar. There was similar code for the toolbar, but it was removed in 2009 (with no explanation in the commit message). Does it mean that the underlying problem is already fixed, and we can remove this workaround from the menu code too?

Anyway, excluding read-only documents from this workaround is a valid request.
Comment 4 QA Administrators 2017-03-06 14:11:24 UTC Comment hidden (obsolete)
Comment 5 Yousuf Philips (jay) (retired) 2017-05-04 17:28:07 UTC
Still happening.

Version: 5.4.0.0.alpha0+
Build ID: 74ccd02eda2d6325a27266fd935aba29b3d75020
CPU threads: 2; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-04-27_23:51:14
Locale: en-US (en_US.UTF-8); Calc: group

(In reply to Maxim Monastirsky from comment #3)
> Although I'm not sure why we don't do the same for the toolbar. There was
> similar code for the toolbar, but it was removed in 2009 (with no
> explanation in the commit message). Does it mean that the underlying problem
> is already fixed, and we can remove this workaround from the menu code too?

Sorry for the delayed reply. Not sure what the underlying problem is, but how can we find out.
Comment 6 QA Administrators 2018-07-02 02:34:58 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-07-02 03:38:02 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2022-07-03 03:30:58 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2024-07-03 03:15:23 UTC Comment hidden (obsolete)
Comment 10 Huanyu Liu 2025-10-23 11:11:41 UTC
After 11 years, still reproducible in:

Version: 25.8.2.1 (X86_64) / LibreOffice Community
Build ID: 580(Build:1)
CPU threads: 16; OS: Linux 6.17; UI render: default; VCL: kf6 (cairo+wayland)
Locale: zh-CN (zh_CN.UTF-8); UI: zh-CN
25.8.2-1
Calc: threaded

But only Writer, Impress and Draw are affected. Calc does not have this bug.