mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3995 Context menu in 3D : Always show create fracture, also when no templates are present
This commit is contained in:
parent
cb1ab0082a
commit
62e2149e55
@ -37,9 +37,6 @@ CAF_CMD_SOURCE_INIT(RicNewWellPathFractureAtPosFeature, "RicNewWellPathFractureA
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
|
void RicNewWellPathFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||||
{
|
{
|
||||||
RimProject* proj = RiaApplication::instance()->project();
|
|
||||||
if (proj->allFractureTemplates().empty()) return;
|
|
||||||
|
|
||||||
Riu3dSelectionManager* riuSelManager = Riu3dSelectionManager::instance();
|
Riu3dSelectionManager* riuSelManager = Riu3dSelectionManager::instance();
|
||||||
RiuSelectionItem* selItem = riuSelManager->selectedItem(Riu3dSelectionManager::RUI_TEMPORARY);
|
RiuSelectionItem* selItem = riuSelManager->selectedItem(Riu3dSelectionManager::RUI_TEMPORARY);
|
||||||
|
|
||||||
@ -66,8 +63,5 @@ void RicNewWellPathFractureAtPosFeature::setupActionLook(QAction* actionToSetup)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
bool RicNewWellPathFractureAtPosFeature::isCommandEnabled()
|
bool RicNewWellPathFractureAtPosFeature::isCommandEnabled()
|
||||||
{
|
{
|
||||||
RimProject* proj = RiaApplication::instance()->project();
|
|
||||||
if (proj->allFractureTemplates().empty()) return false;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user