More fixes for Code/Editor
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -1228,7 +1228,7 @@ bool CFileUtil::CreatePath(const QString& strPath)
|
||||
nTotalPathQueueElements = cstrDirectoryQueue.size();
|
||||
for (nCurrentPathQueue = 0; nCurrentPathQueue < nTotalPathQueueElements; ++nCurrentPathQueue)
|
||||
{
|
||||
strCurrentDirectoryPath += cstrDirectoryQueue[nCurrentPathQueue];
|
||||
strCurrentDirectoryPath += cstrDirectoryQueue[static_cast<int>(nCurrentPathQueue)];
|
||||
strCurrentDirectoryPath += "\\";
|
||||
// The value which will go out of this loop is the result of the attempt to create the
|
||||
// last directory, only.
|
||||
@@ -1368,8 +1368,8 @@ IFileUtil::ECopyTreeResult CFileUtil::CopyTree(const QString& strSourceDirectory
|
||||
return eCopyResult;
|
||||
}
|
||||
|
||||
QString sourceName = sourceDir.absoluteFilePath(cFiles[nCurrent]);
|
||||
QString targetName = targetDir.absoluteFilePath(cFiles[nCurrent]);
|
||||
QString sourceName = sourceDir.absoluteFilePath(cFiles[static_cast<int>(nCurrent)]);
|
||||
QString targetName = targetDir.absoluteFilePath(cFiles[static_cast<int>(nCurrent)]);
|
||||
|
||||
if (boConfirmOverwrite)
|
||||
{
|
||||
@@ -1387,7 +1387,7 @@ IFileUtil::ECopyTreeResult CFileUtil::CopyTree(const QString& strSourceDirectory
|
||||
const int ret = QMessageBox::question(AzToolsFramework::GetActiveWindow(),
|
||||
QObject::tr("Confirm file overwrite?"),
|
||||
QObject::tr("There is already a file named \"%1\" in the target folder. Do you want to move this file anyway replacing the old one?")
|
||||
.arg(cFiles[nCurrent]),
|
||||
.arg(cFiles[static_cast<int>(nCurrent)]),
|
||||
QMessageBox::YesToAll | QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
||||
|
||||
switch (ret) {
|
||||
@@ -1448,8 +1448,8 @@ IFileUtil::ECopyTreeResult CFileUtil::CopyTree(const QString& strSourceDirectory
|
||||
|
||||
bool bnLastDirectoryWasCreated(false);
|
||||
|
||||
QString sourceName = sourceDir.absoluteFilePath(cDirectories[nCurrent]);
|
||||
QString targetName = targetDir.absoluteFilePath(cDirectories[nCurrent]);
|
||||
QString sourceName = sourceDir.absoluteFilePath(cDirectories[static_cast<int>(nCurrent)]);
|
||||
QString targetName = targetDir.absoluteFilePath(cDirectories[static_cast<int>(nCurrent)]);
|
||||
|
||||
bnLastDirectoryWasCreated = QDir().mkpath(targetName);
|
||||
|
||||
@@ -1473,7 +1473,7 @@ IFileUtil::ECopyTreeResult CFileUtil::CopyTree(const QString& strSourceDirectory
|
||||
const int ret = QMessageBox::question(AzToolsFramework::GetActiveWindow(),
|
||||
QObject::tr("Confirm directory overwrite?"),
|
||||
QObject::tr("There is already a folder named \"%1\" in the target folder. Do you want to move this folder anyway?")
|
||||
.arg(cDirectories[nCurrent]),
|
||||
.arg(cDirectories[static_cast<int>(nCurrent)]),
|
||||
QMessageBox::YesToAll | QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
||||
|
||||
switch (ret) {
|
||||
@@ -1742,8 +1742,8 @@ IFileUtil::ECopyTreeResult CFileUtil::MoveTree(const QString& strSourceDirecto
|
||||
}
|
||||
|
||||
bool bnLastFileWasCopied(false);
|
||||
QString sourceName(sourceDir.absoluteFilePath(cFiles[nCurrent]));
|
||||
QString targetName(targetDir.absoluteFilePath(cFiles[nCurrent]));
|
||||
QString sourceName(sourceDir.absoluteFilePath(cFiles[static_cast<int>(nCurrent)]));
|
||||
QString targetName(targetDir.absoluteFilePath(cFiles[static_cast<int>(nCurrent)]));
|
||||
|
||||
if (boConfirmOverwrite)
|
||||
{
|
||||
@@ -1761,7 +1761,7 @@ IFileUtil::ECopyTreeResult CFileUtil::MoveTree(const QString& strSourceDirecto
|
||||
const int ret = QMessageBox::question(AzToolsFramework::GetActiveWindow(),
|
||||
QObject::tr("Confirm file overwrite?"),
|
||||
QObject::tr("There is already a file named \"%1\" in the target folder. Do you want to move this file anyway replacing the old one?")
|
||||
.arg(cFiles[nCurrent]),
|
||||
.arg(cFiles[static_cast<int>(nCurrent)]),
|
||||
QMessageBox::YesToAll | QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
||||
|
||||
switch (ret) {
|
||||
@@ -1822,8 +1822,8 @@ IFileUtil::ECopyTreeResult CFileUtil::MoveTree(const QString& strSourceDirecto
|
||||
return eCopyResult;
|
||||
}
|
||||
|
||||
QString sourceName(sourceDir.absoluteFilePath(cDirectories[nCurrent]));
|
||||
QString targetName(targetDir.absoluteFilePath(cDirectories[nCurrent]));
|
||||
QString sourceName(sourceDir.absoluteFilePath(cDirectories[static_cast<int>(nCurrent)]));
|
||||
QString targetName(targetDir.absoluteFilePath(cDirectories[static_cast<int>(nCurrent)]));
|
||||
|
||||
bnLastDirectoryWasCreated = QDir().mkdir(targetName);
|
||||
|
||||
@@ -1847,7 +1847,7 @@ IFileUtil::ECopyTreeResult CFileUtil::MoveTree(const QString& strSourceDirecto
|
||||
const int ret = QMessageBox::question(AzToolsFramework::GetActiveWindow(),
|
||||
QObject::tr("Confirm directory overwrite?"),
|
||||
QObject::tr("There is already a folder named \"%1\" in the target folder. Do you want to move this folder anyway?")
|
||||
.arg(cDirectories[nCurrent]),
|
||||
.arg(cDirectories[static_cast<int>(nCurrent)]),
|
||||
QMessageBox::YesToAll | QMessageBox::Yes | QMessageBox::No | QMessageBox::Cancel);
|
||||
|
||||
switch (ret) {
|
||||
|
||||
Reference in New Issue
Block a user