From 01a0aabb81f63b08e17693dc7ccbda809cddc0b6 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Fri, 14 Dec 2007 23:47:59 +0000 Subject: [PATCH] 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 --- src/support/FileName.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index d5eea48af7..e0e10cf07f 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -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()); -- 2.39.2