Fix reloading of patch files

Task-number: QTCREATORBUG-13241
Change-Id: I2785343ca94c19597ad954f2d35f8bf6536b0956
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>