Try to remove the destination without first checking for its existence

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22157 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2007-12-14 23:47:59 +00:00
parent 48d0007f71
commit 01a0aabb81

View File

@ -162,8 +162,7 @@ bool FileName::renameTo(FileName const & name) const
bool FileName::moveTo(FileName const & name) const
{
if (name.exists() && !name.removeFile())
return false;
QFile::remove(name.d->fi.absoluteFilePath());
bool success = QFile::rename(d->fi.absoluteFilePath(),
name.d->fi.absoluteFilePath());