mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash and typo and set stat Ensemble index to 1
This commit is contained in:
parent
dcde9ccf72
commit
02049abe78
@ -144,13 +144,13 @@ bool RicImportEnsambleFeature::validateEnsambleCases(std::vector<RimSummaryCase*
|
||||
QString RicImportEnsambleFeature::askForEnsambleName()
|
||||
{
|
||||
RimProject* project = RiaApplication::instance()->project();
|
||||
int groupCount = (int)project->summaryGroups().size();
|
||||
int groupCount = (int)project->summaryGroups().size() + 1;
|
||||
|
||||
QInputDialog dialog;
|
||||
dialog.setInputMode(QInputDialog::TextInput);
|
||||
dialog.setWindowTitle("Ensamble Name");
|
||||
dialog.setLabelText("Ensamble Name");
|
||||
dialog.setTextValue(QString("Ensamble %1").arg(groupCount));
|
||||
dialog.setWindowTitle("Ensemble Name");
|
||||
dialog.setLabelText("Ensemble Name");
|
||||
dialog.setTextValue(QString("Ensemble %1").arg(groupCount));
|
||||
dialog.resize(300, 50);
|
||||
dialog.exec();
|
||||
return dialog.result() == QDialog::Accepted ? dialog.textValue() : QString("");
|
||||
|
@ -464,6 +464,8 @@ void RimEnsambleCurveSet::appendOptionItemsForSummaryAddresses(QList<caf::PdmOpt
|
||||
RimSummaryCaseCollection* summaryCaseGroup,
|
||||
RimSummaryFilter* summaryFilter)
|
||||
{
|
||||
if (!summaryCaseGroup) return;
|
||||
|
||||
std::set<RifEclipseSummaryAddress> allAddresses;
|
||||
|
||||
for (RimSummaryCase* summaryCase : summaryCaseGroup->allSummaryCases())
|
||||
|
Loading…
Reference in New Issue
Block a user