diff --git a/PowerEditor/installer/nativeLang/english.xml b/PowerEditor/installer/nativeLang/english.xml index 4ba4201d..08bdd7f1 100644 --- a/PowerEditor/installer/nativeLang/english.xml +++ b/PowerEditor/installer/nativeLang/english.xml @@ -1119,6 +1119,7 @@ Continue?"/> + getHSelf(), + TEXT("The specified name is already in use on another tab."), + TEXT("Rename failed"), + MB_OK | MB_ICONSTOP); + } + else + { + success = true; + buf->setFileName(tabNewName); + bool isSnapshotMode = NppParameters::getInstance().getNppGUI().isSnapshotMode(); + if (isSnapshotMode) + { + generic_string oldBackUpFile = buf->getBackupFileName(); - // Change the backup file name and let MainFileManager decide the new filename - buf->setBackupFileName(TEXT("")); + // Change the backup file name and let MainFileManager decide the new filename + buf->setBackupFileName(TEXT("")); - // Create new backup - buf->setModifiedStatus(true); - bool bRes = MainFileManager.backupCurrentBuffer(); + // Create new backup + buf->setModifiedStatus(true); + bool bRes = MainFileManager.backupCurrentBuffer(); - // Delete old backup - if (bRes) - ::DeleteFile(oldBackUpFile.c_str()); + // Delete old backup + if (bRes) + ::DeleteFile(oldBackUpFile.c_str()); + } } } }