Add some output for bug 4693

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25710 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-19 11:47:20 +00:00
parent f3085670f7
commit b17489d91e

View File

@ -166,11 +166,12 @@ void FileName::erase()
bool FileName::copyTo(FileName const & name) const
{
LYXERR(Debug::FILES, "Copying " << name);
QFile::remove(name.d->fi.absoluteFilePath());
bool success = QFile::copy(d->fi.absoluteFilePath(), name.d->fi.absoluteFilePath());
if (!success)
lyxerr << "FileName::copyTo(): Could not copy file "
<< *this << " to " << name << endl;
LYXERR0("FileName::copyTo(): Could not copy file "
<< *this << " to " << name);
return success;
}