##// END OF EJS Templates
Quite fixed D&D from tree......
jeandet -
r45:6ac847d5cc85
parent child
Show More
@@ -353,11 +353,11 std::shared_ptr<Variable> VariableController2::createVariable(const QString &nam
353 {
353 {
354 auto var = impl->createVariable(name, metadata, provider);
354 auto var = impl->createVariable(name, metadata, provider);
355 var->setRange(range); // even with no data this is it's range
355 var->setRange(range); // even with no data this is it's range
356 emit variableAdded(var);
357 if(!DateTimeRangeHelper::hasnan(range))
356 if(!DateTimeRangeHelper::hasnan(range))
358 impl->asyncChangeRange(var,range);
357 impl->asyncChangeRange(var,range);
359 else
358 else
360 SCIQLOP_ERROR(VariableController2, "Creating a variable with default constructed DateTimeRange is an error");
359 SCIQLOP_ERROR(VariableController2, "Creating a variable with default constructed DateTimeRange is an error");
360 emit variableAdded(var);
361 return var;
361 return var;
362 }
362 }
363
363
General Comments 0
You need to be logged in to leave comments. Login now