|
@@ -83,8 +83,12 @@ QList<SchemePlanManager::SchemeProcessInfo> SchemePlanWidget::templateSchemes(in
|
|
|
process.indexType = indexType;
|
|
|
process.type = types[i];
|
|
|
process.step = i;
|
|
|
- process.dSource = SchemePlanManager::processOptionalDataSource(process).first();
|
|
|
- process.algorithm = SchemePlanManager::processOptionalAlgorithms(process).first();
|
|
|
+
|
|
|
+ QList<SchemePlanManager::SchemeDataSource> data = SchemePlanManager::processOptionalDataSource(process);
|
|
|
+ process.dSource = data.size() > 0 ? data.first() : SchemePlanManager::NoData;
|
|
|
+
|
|
|
+ QList<SchemePlanManager::Algorithm> algs = SchemePlanManager::processOptionalAlgorithms(process);
|
|
|
+ process.algorithm = algs.size() > 0 ? algs.first() : SchemePlanManager::NoAlg;
|
|
|
schemes.append(process);
|
|
|
}
|
|
|
|
|
@@ -108,7 +112,6 @@ void SchemePlanWidget::setupTabWidget()
|
|
|
if (ret) {
|
|
|
m->loadSchemes(schemes);
|
|
|
}
|
|
|
-
|
|
|
ProjectManager::IndexType t = (ProjectManager::IndexType)i;
|
|
|
QString s = ProjectManager::nameOfIndexType(t);
|
|
|
m_tab->addTab(m, s);
|