I see it this way, if it came up as just a part of small talk and informal conversation, I guess it'd be an innocent question to ask.
BUT -- since she was up for promotion and it's a critical time for her and I suppose the rest of your staff, perhaps it was somewhat inappropriate for you to ask that.
Just my two cents.