From: APTX Date: Tue, 7 May 2013 22:46:58 +0000 (+0200) Subject: actualPath should be the exact path of the new path, not the old path. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=240bb1f728ff403e301914ba4e9dfb59162db925;p=localmylist.git actualPath should be the exact path of the new path, not the old path. --- diff --git a/localmylist/renameutils.cpp b/localmylist/renameutils.cpp index e6f4bdb..fcc3dbf 100644 --- a/localmylist/renameutils.cpp +++ b/localmylist/renameutils.cpp @@ -129,7 +129,8 @@ bool renameFile(const QString &oldName, const QString &newName, QString *actualP if (!QFile::rename(oldName, newName)) return false; - if (actualPath) *actualPath = exactPath(oldName); + if (actualPath) *actualPath = exactPath(newName); + return true; #else