void VisuGUI_DeformedShapeAndScalarMapDlg::AddAllTimes(const QString& theFieldName){
TEntity2Fields::const_iterator anIter = myEntity2Fields.begin();
+ int currentTimeStampId = (myTimeStampsCombo->count() > 0) ? myTimeStampsCombo->currentIndex() : 0;
for(; anIter != myEntity2Fields.end(); anIter++){
const TFieldName2TimeStamps& aFieldName2TimeStamps = anIter->second;
TFieldName2TimeStamps::const_iterator aFieldIter = aFieldName2TimeStamps.begin();
QString aTimeStampTime = aTimeStampIter->second;
myTimeStampsCombo->addItem(aTimeStampTime);
}
+ if(currentTimeStampId >= myTimeStampID.size())
+ currentTimeStampId = myTimeStampID.size()-1;
+ myTimeStampsCombo->setCurrentIndex(currentTimeStampId);
return;
}
}