#872 Fixed ordering of actions in menu

This commit is contained in:
Magne Sjaastad 2017-03-15 12:36:52 +01:00
parent 7a0f0d11fb
commit 5d29cd0ac6

View File

@ -405,7 +405,11 @@ QStringList RimContextCommandBuilder::commandsFromSelection()
}
else if (dynamic_cast<RimSummaryPlot*>(uiItem))
{
commandIds << "RicAsciiExportSummaryPlotFeature";
// Do not add twice to make sure the first position in the menu is used for the action
if (!commandIds.contains("RicAsciiExportSummaryPlotFeature"))
{
commandIds << "RicAsciiExportSummaryPlotFeature";
}
}
else if (dynamic_cast<RimWellLogPlot*>(uiItem))
{