forked from mirror/openmw-tes3mp
IdContextMenu: don't add Edit action if it's already in the context menu
This commit is contained in:
parent
61ab0ba482
commit
d73fd471c3
1 changed files with 1 additions and 1 deletions
|
@ -374,7 +374,7 @@ void CSVWorld::IdContextMenu::addEditIdActionToMenu(const QString &text)
|
|||
{
|
||||
mContextMenu->addAction(mEditIdAction);
|
||||
}
|
||||
else
|
||||
else if (mContextMenu->actions().first() != mEditIdAction)
|
||||
{
|
||||
QAction *action = mContextMenu->actions().first();
|
||||
mContextMenu->insertAction(action, mEditIdAction);
|
||||
|
|
Loading…
Reference in a new issue