A droplet that moves on a solid substrate with a velocity higher than a certain critical velocity disintegrates, i.e., leaves behind residual droplets.Infrared laserillumination can be used to increase the droplet mobility and suppress the shedding of droplets. By means of two-dimensional numerical simulations, we studied the effect of a non-uniform temperature distribution on the dynamics of straight receding contact lines. A streamfunction-vorticity model is used to describe the liquid flow in the vicinity of the receding contact line. The model takes into account the thermocapillary shear stress and the temperature-dependent liquid viscosity and density. A second, coupled model describes the laser-induced displacement of the contact line. Our results show that the reduction of the liquid viscosity with increasing temperature is the dominant mechanism for the increase of the critical velocity. Thermocapillary shear stresses are important primarily for low substrate speeds.