Commit ead95518 authored by Elvis Angelaccio's avatar Elvis Angelaccio
Browse files

Fix another null QChar

GIT_SILENT
parent 2bd1c76e
......@@ -1439,7 +1439,11 @@ void Part::slotRenameFile(const QString &name)
m_destination = new Archive::Entry();
const QString &entryPath = entry->fullPath(NoTrailingSlash);
const QString rootPath = entryPath.left(entryPath.count() - entry->name().count());
m_destination->setFullPath(rootPath + name + ((entry->isDir()) ? QLatin1Char('/') : QChar()));
auto path = rootPath + name;
if (entry->isDir()) {
path += QLatin1Char('/');
}
m_destination->setFullPath(path);
slotPasteFiles(entriesToMove, m_destination, 1);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment