Deductions & credits

I inherited stock 2007. I donated some shares of the stock to charity in 2018. When I entered the donation in TurboTax(R), there was a check box for "I inherited the donation." If I check that box, TurboTax(R) wants to delete the donation. Does this mean that I cannot deduct the stock I inherited? There is no "Learn More" link for that box.