mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 08:57:35 +00:00
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:
parent
48d0007f71
commit
01a0aabb81
@ -162,8 +162,7 @@ bool FileName::renameTo(FileName const & name) const
|
|||||||
|
|
||||||
bool FileName::moveTo(FileName const & name) const
|
bool FileName::moveTo(FileName const & name) const
|
||||||
{
|
{
|
||||||
if (name.exists() && !name.removeFile())
|
QFile::remove(name.d->fi.absoluteFilePath());
|
||||||
return false;
|
|
||||||
|
|
||||||
bool success = QFile::rename(d->fi.absoluteFilePath(),
|
bool success = QFile::rename(d->fi.absoluteFilePath(),
|
||||||
name.d->fi.absoluteFilePath());
|
name.d->fi.absoluteFilePath());
|
||||||
|
Loading…
Reference in New Issue
Block a user