mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4176 Limit scope of Delete/Show all linked views command with selection manager
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
#include "RimViewController.h"
|
||||
#include "RimViewLinker.h"
|
||||
#include "RimViewLinkerCollection.h"
|
||||
#include "RimWellAllocationPlot.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogFile.h"
|
||||
@@ -410,7 +411,7 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
{
|
||||
menuBuilder << "RicShowAllLinkedViewsFeature";
|
||||
}
|
||||
else if (dynamic_cast<RimViewLinker*>(uiItem))
|
||||
else if (dynamic_cast<RimViewLinker*>(uiItem) || dynamic_cast<RimViewLinkerCollection*>(uiItem))
|
||||
{
|
||||
menuBuilder << "RicShowAllLinkedViewsFeature";
|
||||
menuBuilder << "Separator";
|
||||
|
||||
Reference in New Issue
Block a user