Your ruling was absolutely correct. Some players seem to fail to realise that a lead placed face-down has been made.
If the opponents had called you before the
Q was faced then you would have insisted the original card was played and warned the partner not to take advanatage of the unauthorised information that his partner had changed his mind.