mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #682: safety replacement for folder separator when renaming a session or folder
This commit is contained in:
@@ -1130,6 +1130,9 @@ begin
|
||||
|
||||
SiblingSessions := NodeSessionNames(Node.Parent, ParentKey);
|
||||
|
||||
// Safety replacement for folder separator, see issue #682
|
||||
NewText := StringReplace(NewText, '\', '-', [rfReplaceAll]);
|
||||
|
||||
if SiblingSessions.IndexOf(NewText) > -1 then begin
|
||||
ErrorDialog(
|
||||
f_('Session "%s" already exists!', [ParentKey+NewText])
|
||||
|
||||
Reference in New Issue
Block a user