mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Disable custom insets insert menu if read only
Before, if a document was read only and had no custom insets defined, the submenu would be enabled.
This commit is contained in:
parent
d449e7e64e
commit
0bf61a48c0
@ -1214,7 +1214,7 @@ void MenuDefinition::expandFlexInsert(
|
||||
}
|
||||
}
|
||||
// FIXME This is a little clunky.
|
||||
if (items_.empty() && type == InsetLayout::CUSTOM)
|
||||
if (items_.empty() && type == InsetLayout::CUSTOM && !buf->isReadonly())
|
||||
add(MenuItem(MenuItem::Help, qt_("No Custom Insets Defined!")));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user