mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#872 Fixed ordering of actions in menu
This commit is contained in:
parent
7a0f0d11fb
commit
5d29cd0ac6
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user