I want to know just WHY you gave me a hint." Sir James smiled at her earnestness.
Sir James smiled at her as she said "I want to know why you gave me a hint"
Sir James didn't smile when she asked about giving her a hint.