]> Some of my projects - localmylist.git/commitdiff
actualPath should be the exact path of the new path, not the old path.
authorAPTX <marek321@gmail.com>
Tue, 7 May 2013 22:46:58 +0000 (00:46 +0200)
committerAPTX <marek321@gmail.com>
Tue, 7 May 2013 22:46:58 +0000 (00:46 +0200)
localmylist/renameutils.cpp

index e6f4bdb3851a6ebcec733a53b7a392e6c7124973..fcc3dbf77586010e2311e9e97c41f52c8f448b31 100644 (file)
@@ -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