1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-30 19:15:31 +00:00

IdContextMenu: don't add Edit action if it's already in the context menu

This commit is contained in:
Stanislav Bas 2015-07-03 19:07:44 +03:00 committed by cc9cii
parent bdb063a691
commit ba68201593

View file

@ -374,7 +374,7 @@ void CSVWorld::IdContextMenu::addEditIdActionToMenu(const QString &text)
{ {
mContextMenu->addAction(mEditIdAction); mContextMenu->addAction(mEditIdAction);
} }
else else if (mContextMenu->actions().first() != mEditIdAction)
{ {
QAction *action = mContextMenu->actions().first(); QAction *action = mContextMenu->actions().first();
mContextMenu->insertAction(action, mEditIdAction); mContextMenu->insertAction(action, mEditIdAction);