Do you need to enter the sale of a rental property that was once a principal residence twice?

I lived in a condo for 2 years, then rented it out for 4 years.  Going through the software I entered it twice, once under the disposition of a rental property and again under selling a principal residence.  Is this correct?