IFK from inside the box isn't considered in play until it leaves it. If Hart had touched it twice to dribble outside the area then that would have been worthy of awarding one to QPR, agreed, but I think Dean was right to tell him to take it again as it hadn't left the box.
Same as if it had been in motion when kicked, see those taken back all the time.
It annoys me when a player deliberately touches the ball before its left the 18 yard box from a goal kick as they know it's going to run to an on rushing forward. Refs just make the keeper take the kick again when surely they should be punishing the defender for preventing a clear goal scoring opportunity.
yeah, it's poor sportsmanship, and refs are given leeway in their discretion on punishing it, seems like some should tbh