| Summary: | Improve the workflow of adding items to menus | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Muhammet Kara <kara> |
| Component: | UI | Assignee: | Baltasar <baltasarq> |
| Status: | VERIFIED FIXED | ||
| Severity: | normal | CC: | buzea.bogdan, heiko.tietze, kara, mentoring, philipz85 |
| Priority: | medium | Keywords: | difficultyMedium, easyHack, skillCpp, topicUI |
| Version: | 6.0.0.0.alpha0+ | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | target:7.2.0 | ||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 103238 | ||
|
Description
Muhammet Kara
2017-09-13 10:37:37 UTC
Relevant code is in cui/source/customize/SvxMenuConfigPage.cxx and cui/source/customize/cfg.cxx The part checking for the duplicate menu item and showing a message is in the if block under this comment: "// check that this function is not already in the menu" I'd like to assign this bug to me. Is this okay? I've created a fix to this bug: https://gerrit.libreoffice.org/c/core/+/115057 baltasarq committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/43b985b35be324b3398d48585d943f6fb64ae066 tdf#112369 allow to disable the add command button in menu customize It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. An option could NOT be added now twice. Verified in Version: 7.2.0.0.alpha1+ / LibreOffice Community Build ID: b238522ca121ca8f863fe4d3394ade088a65ad01 CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Could this be done to Customize - Toolbar? Now it is working for: Menus and Context menus, but not for Toolbar. I suppose so. I will have to take a deep look, however, since that situation was not included in the original code (i.e., if you added a toolbar button twice, no message box appeared). (In reply to BogdanB from comment #5) > An option could NOT be added now twice. > > Verified in Version: 7.2.0.0.alpha1+ / LibreOffice Community > Build ID: b238522ca121ca8f863fe4d3394ade088a65ad01 > CPU threads: 4; OS: Linux 5.8; UI render: default; VCL: gtk3 > Locale: ro-RO (ro_RO.UTF-8); UI: en-US > Calc: threaded > > Could this be done to Customize - Toolbar? > Now it is working for: Menus and Context menus, but not for Toolbar. Yes, it could be, but it is out of the scope of this easyhack. IIRC, it was discussed in the past, and we decided not to limit users' ability to add commands more than once to a toolbar. |