Skip to content

Commit 1348f34

Browse files
committed
fix: z and t stack in pipeline settings are not initialized correct if loading pipeline from template
Closes #213
1 parent 09c0118 commit 1348f34

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/ui/gui/editor/widget_pipeline/dialog_pipeline_settings/dialog_pipeline_settings.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ DialogPipelineSettings::DialogPipelineSettings(const joda::settings::Classificat
7373

7474
zStackIndex = new QLineEdit();
7575
zStackIndex->setPlaceholderText("Z-Stack to analyze [0 - 65535]");
76+
zStackIndex->setText("0");
7677
formLayout->addRow("z-index", zStackIndex);
7778

7879
tStackIndex = new QLineEdit();
7980
tStackIndex->setPlaceholderText("T-Stack to analyze [0 - 65535]");
81+
tStackIndex->setText("0");
8082
formLayout->addRow("t-index", tStackIndex);
8183

8284
defaultClassId = new QComboBox();
@@ -181,13 +183,13 @@ void DialogPipelineSettings::fromSettings()
181183
if(mSettings.pipelineSetup.zStackIndex >= 0) {
182184
zStackIndex->setText(QString::number((mSettings.pipelineSetup.zStackIndex)));
183185
} else {
184-
zStackIndex->setText("");
186+
zStackIndex->setText("0");
185187
}
186188

187189
if(mSettings.pipelineSetup.tStackIndex >= 0) {
188190
tStackIndex->setText(QString::number((mSettings.pipelineSetup.tStackIndex)));
189191
} else {
190-
tStackIndex->setText("");
192+
tStackIndex->setText("0");
191193
}
192194

193195
mPipelineNotes->setText(mSettings.meta.notes.data());

0 commit comments

Comments
 (0)