mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: File name in new file dialog
This commit is contained in:
parent
0219763670
commit
0540dc29f0
1 changed files with 5 additions and 1 deletions
|
|
@ -1558,8 +1558,12 @@ var
|
|||
begin
|
||||
with frmMain do
|
||||
begin
|
||||
sNewFile:=ActiveFrame.ActiveDir + rsEditNewFile;
|
||||
if ActiveFrame.IsActiveItemValid then
|
||||
sNewFile:= ActiveFrame.GetActiveItem^.sName
|
||||
else
|
||||
sNewFile:= rsEditNewFile;
|
||||
if not InputQuery(rsEditNewOpen, rsEditNewFileName, sNewFile) then Exit;
|
||||
sNewFile:= ActiveFrame.ActiveDir + sNewFile;
|
||||
if not mbFileExists(sNewFile) then
|
||||
try
|
||||
hFile:= mbFileCreate(sNewFile);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue