- addItem( myHypCombo[ AddHyp ]->itemText( i ), theId, theIndex );
- myHypCombo[ AddHyp ]->removeItem( i );
- break;
+ int curIndex = myHypCombo[ AddHyp ]->itemData( i ).toInt();
+ if ( theIndex == curIndex )
+ {
+ addItem( myHypCombo[ AddHyp ]->itemText( i ), theId, theIndex );
+ myHypCombo[ AddHyp ]->removeItem( i );
+ break;
+ }