UPD: Viewer - save image as (default directory and file name)

This commit is contained in:
Alexander Koblov 2023-07-11 21:36:58 +03:00
commit b635c03750

View file

@ -1723,6 +1723,8 @@ begin
else begin
with SavePictureDialog do
begin
FileName:= EmptyStr;
InitialDir:= ExtractFileDir(FileList.Strings[iActiveFile]);
if not Execute then Exit;
sExt:= ExtensionSeparator + GetFilterExt;
sFileName:= ChangeFileExt(FileName, sExt);