mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix missing update of export well name
This commit is contained in:
@@ -18,9 +18,11 @@
|
||||
#include "RimWellPathCompletionSettings.h"
|
||||
|
||||
#include "RiaStdStringTools.h"
|
||||
#include "RimMswCompletionParameters.h"
|
||||
#include "RiaWellNameComparer.h"
|
||||
|
||||
#include "RimMswCompletionParameters.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include "cafPdmDoubleStringValidator.h"
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include "cafPdmUiOrdering.h"
|
||||
@@ -131,8 +133,7 @@ RimWellPathCompletionSettings& RimWellPathCompletionSettings::operator=( const R
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellPathCompletionSettings::setWellNameForExport( const QString& name )
|
||||
{
|
||||
auto n = name;
|
||||
m_wellNameForExport = n.remove( ' ' );
|
||||
m_wellNameForExport = RiaWellNameComparer::removeSpacesFromName( name );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -141,9 +142,11 @@ void RimWellPathCompletionSettings::setWellNameForExport( const QString& name )
|
||||
void RimWellPathCompletionSettings::updateWellPathNameHasChanged( const QString& newWellPathName,
|
||||
const QString& previousWellPathName )
|
||||
{
|
||||
if ( m_wellNameForExport().isEmpty() || m_wellNameForExport == previousWellPathName )
|
||||
auto previousWellNameWithoutSpaces = RiaWellNameComparer::removeSpacesFromName( previousWellPathName );
|
||||
|
||||
if ( m_wellNameForExport().isEmpty() || m_wellNameForExport == previousWellNameWithoutSpaces )
|
||||
{
|
||||
m_wellNameForExport = newWellPathName;
|
||||
setWellNameForExport( newWellPathName );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user