diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 4f22d829ff10..5a86b07b5e69 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -593,37 +593,6 @@ IMPL_LINK( OFieldDescControl, ChangeHdl, ListBox&, rListBox, void ) } } - // A special treatment only for AutoIncrement - if (&rListBox == pAutoIncrement) - { - if(rListBox.GetSelectedEntryPos() == 1) - { // no - DeactivateAggregate( tpAutoIncrementValue ); - if(pActFieldDescr->IsPrimaryKey()) - DeactivateAggregate( tpRequired ); - else if( pActFieldDescr->getTypeInfo()->bNullable ) - { - ActivateAggregate( tpRequired ); - if(pRequired) - { - if( pActFieldDescr->IsNullable() ) - pRequired->SelectEntryPos( 1 ); // no - else - pRequired->SelectEntryPos( 0 ); // yes - } - } - ActivateAggregate( tpDefault ); - } - else - { - DeactivateAggregate( tpRequired ); - DeactivateAggregate( tpDefault ); - ActivateAggregate( tpAutoIncrementValue ); - } - // Move all up - ArrangeAggregates(); - } - if(&rListBox == m_pType) { TOTypeInfoSP pTypeInfo = getTypeInfo(m_pType->GetSelectedEntryPos());