mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3285 Simple guarding and header reorganisation
This commit is contained in:
parent
e93a07b43b
commit
b603c5948e
@ -17,8 +17,9 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#include "RicDeleteWellPathAttributeFeature.h"
|
||||
|
||||
#include "RimWellPathAttributeCollection.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathAttribute.h"
|
||||
#include "RimWellPathAttributeCollection.h"
|
||||
|
||||
#include "cafSelectionManager.h"
|
||||
#include <QAction>
|
||||
|
@ -72,9 +72,11 @@ void RicNewWellPathAttributeFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
std::vector<RimWellPathAttributeCollection*> attributeCollections;
|
||||
wellPath->descendantsIncludingThisOfType(attributeCollections);
|
||||
|
||||
attributeCollections[0]->insertAttribute(nullptr, new RimWellPathAttribute);
|
||||
attributeCollections[0]->updateAllRequiredEditors();
|
||||
if (!attributeCollections.empty())
|
||||
{
|
||||
attributeCollections[0]->insertAttribute(nullptr, new RimWellPathAttribute);
|
||||
attributeCollections[0]->updateAllRequiredEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user