|
@@ -230,6 +230,11 @@ bool FlowGraphCommonNodeWidget::isOptional() const
|
|
void FlowGraphCommonNodeWidget::slotAlgComboChanged(int index)
|
|
void FlowGraphCommonNodeWidget::slotAlgComboChanged(int index)
|
|
{
|
|
{
|
|
QList<SchemePlanManager::Algorithm> list = optionalAlgs();
|
|
QList<SchemePlanManager::Algorithm> list = optionalAlgs();
|
|
|
|
+
|
|
|
|
+ if (list.size() <= index) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (m_process.algorithm == list.at(index)) {
|
|
if (m_process.algorithm == list.at(index)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -244,6 +249,11 @@ void FlowGraphCommonNodeWidget::slotAlgComboChanged(int index)
|
|
void FlowGraphCommonNodeWidget::slotDataComboChanged(int index)
|
|
void FlowGraphCommonNodeWidget::slotDataComboChanged(int index)
|
|
{
|
|
{
|
|
QList<SchemePlanManager::SchemeDataSource> list = optionaldSource();
|
|
QList<SchemePlanManager::SchemeDataSource> list = optionaldSource();
|
|
|
|
+
|
|
|
|
+ if (list.size() <= index) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
if (m_process.dSource == list.at(index)) {
|
|
if (m_process.dSource == list.at(index)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|