mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 07:15:32 +00:00
IdContextMenu: don't add Edit action if it's already in the context menu
This commit is contained in:
parent
bdb063a691
commit
ba68201593
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