You should never have booked such a short connection on 2 different PNR for the simple reason than delays and flying schedule changes happen. Under a 2 hours flight schedule change QR won't offer you to rebook on another flight free of charge.
You were very lucky to make it with only a few hours delay without having to pay more...