mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
MenuBuilder. Fix: Menu separator always added to top level menu
This commit is contained in:
parent
8dc47a84a2
commit
506c454059
@ -153,7 +153,7 @@ void CmdFeatureMenuBuilder::appendToMenu(QMenu* menu)
|
||||
{
|
||||
if (m_items[i].itemType == MenuItem::SEPARATOR)
|
||||
{
|
||||
menu->addSeparator();
|
||||
menus.back()->addSeparator();
|
||||
}
|
||||
else if (m_items[i].itemType == MenuItem::SUBMENU_START)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user