Fixed last model entry not being added to the menu.

This commit is contained in:
leo 2016-02-25 01:44:12 +00:00
parent e377928045
commit c4689812a2

View file

@ -438,8 +438,8 @@ void lcMainWindow::CreateMenus()
ModelMenu->addAction(mActions[LC_MODEL_PROPERTIES]); ModelMenu->addAction(mActions[LC_MODEL_PROPERTIES]);
ModelMenu->addAction(mActions[LC_MODEL_NEW]); ModelMenu->addAction(mActions[LC_MODEL_NEW]);
ModelMenu->addSeparator(); ModelMenu->addSeparator();
for (int ModelIdx = 0; ModelIdx < LC_MODEL_LAST - LC_MODEL_FIRST; ModelIdx++) for (int ModelIdx = LC_MODEL_FIRST; ModelIdx <= LC_MODEL_LAST; ModelIdx++)
ModelMenu->addAction(mActions[LC_MODEL_FIRST + ModelIdx]); ModelMenu->addAction(mActions[ModelIdx]);
ModelMenu->addAction(mActions[LC_MODEL_LIST]); ModelMenu->addAction(mActions[LC_MODEL_LIST]);
QMenu* HelpMenu = menuBar()->addMenu(tr("&Help")); QMenu* HelpMenu = menuBar()->addMenu(tr("&Help"));