From 240bb1f728ff403e301914ba4e9dfb59162db925 Mon Sep 17 00:00:00 2001 From: APTX Date: Wed, 8 May 2013 00:46:58 +0200 Subject: [PATCH] actualPath should be the exact path of the new path, not the old path. --- localmylist/renameutils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.52.0