#2293 Completion Export : Make sure one of the available combo box items are selected

This commit is contained in:
Magne Sjaastad 2017-12-22 14:42:56 +01:00
parent d9e29b91cb
commit 500b298c26

View File

@ -66,6 +66,8 @@ RicExportCompletionDataSettingsUi::RicExportCompletionDataSettingsUi(bool onlyWe
CAF_PDM_InitFieldNoDefault(&fileSplit, "FileSplit", "File Split", "", "", "");
CAF_PDM_InitFieldNoDefault(&wellSelection, "WellSelection", "Well Selection", "", "", "");
wellSelection.uiCapability()->setAutoAddingOptionFromValue(false);
CAF_PDM_InitFieldNoDefault(&compdatExport, "compdatExport", "Export", "", " ", "");
CAF_PDM_InitField(&timeStep, "TimeStepIndex", 0, "Time Step", "", "", "");
@ -180,7 +182,17 @@ void RicExportCompletionDataSettingsUi::defineUiOrdering(QString uiConfigName, c
generalExportSettings->add(&useLateralNTG);
generalExportSettings->add(&wellSelection);
if(!m_onlyWellPathCollectionSelected) wellSelection.setValue(SELECTED_WELLS);
if (!m_onlyWellPathCollectionSelected)
{
wellSelection.setValue(SELECTED_WELLS);
}
else
{
if (wellSelection() != ALL_WELLS && wellSelection() != CHECKED_WELLS)
{
wellSelection.setValue(CHECKED_WELLS);
}
}
generalExportSettings->add(&fileSplit);