The prosecutor might choose to dismiss the case but is not obligated to do so. If we understand the question correctly, while the order was later dismissed at the woman's request, at the time you violated it, the order was in place and in effect. Therefore, you did violate a then-valid protective order, which means you violated the law. They can prosecute that even if the order was later removed.