@@ -151,6 +151,8 @@ destructor TSaveInfoMgr.Destroy;
151151end ;
152152
153153procedure TSaveInfoMgr.DoExecute ;
154+ resourcestring
155+ sDlgCaption = ' Save Snippet Information for %s' ;
154156var
155157 Encoding: TEncoding; // encoding to use for output file
156158 FileContent: string; // output file content before encoding
@@ -164,6 +166,9 @@ procedure TSaveInfoMgr.DoExecute;
164166 1
165167 );
166168 fSaveDlg.FileName := fSourceFileInfo.DefaultFileName;
169+ fSaveDlg.Title := Format(sDlgCaption, [
170+ (fView as ISnippetView).Snippet.DisplayName]
171+ );
167172 // Display dialog box and save file if user OKs
168173 if fSaveDlg.Execute then
169174 begin
@@ -269,7 +274,6 @@ constructor TSaveInfoMgr.InternalCreate(AView: IView);
269274 DlgHelpKeyword = ' SnippetInfoFileDlg' ;
270275resourcestring
271276 sDefFileName = ' SnippetInfo' ;
272- sDlgCaption = ' Save Snippet Information' ;
273277 // descriptions of supported file filter strings
274278 sRTFDesc = ' Rich text file' ;
275279 sTextDesc = ' Plain text file' ;
@@ -312,7 +316,6 @@ constructor TSaveInfoMgr.InternalCreate(AView: IView);
312316 fSourceFileInfo.DefaultFileName := sDefFileName;
313317
314318 fSaveDlg := TSaveSourceDlg.Create(nil );
315- fSaveDlg.Title := sDlgCaption;
316319 fSaveDlg.HelpKeyword := DlgHelpKeyword;
317320 fSaveDlg.CommentStyle := TCommentStyle.csNone;
318321 fSaveDlg.EnableCommentStyles := False;
0 commit comments