fix use QDir()::rename() with Qt-5.12 rename failed

Authored by mqualmann on Jan 3 2019, 2:54 PM.