mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix duplicate, disabled "Separated Frame Below"
This commit fixes an issue where the menu option "Insert Separated
Frame Below" would show up twice, with one instance disabled. This
occurred when there was a "Standard" environment nested in a
"Frame". With this commit, the duplicate instance is removed.
(cherry picked from commit 4f7a5f8c3e
)
This commit is contained in:
parent
0a43aac524
commit
6a808d285c
@ -1917,9 +1917,10 @@ void MenuDefinition::expandEnvironmentSeparators(BufferView const * bv,
|
||||
translateIfPossible(prevlayout));
|
||||
// We use command-alternatives here since this is how the binding is defined
|
||||
// (otherwise, the binding is not displayed in the menu)
|
||||
add(MenuItem(MenuItem::Command, toqstr(label),
|
||||
FuncRequest(LFUN_COMMAND_ALTERNATIVES,
|
||||
from_ascii("environment-split ; environment-split previous"))));
|
||||
if (getStatus(FuncRequest(LFUN_ENVIRONMENT_SPLIT)).enabled())
|
||||
add(MenuItem(MenuItem::Command, toqstr(label),
|
||||
FuncRequest(LFUN_COMMAND_ALTERNATIVES,
|
||||
from_ascii("environment-split ; environment-split previous"))));
|
||||
}
|
||||
if (!outerlayout.empty()) {
|
||||
docstring label;
|
||||
|
@ -234,6 +234,8 @@ What's new
|
||||
|
||||
- Do not allow paragraph styles in listings (bug 11127).
|
||||
|
||||
- Fix duplicate, disabled "Separated <Environment> Below" menu item.
|
||||
|
||||
|
||||
* INTERNALS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user