@@ -151,6 +151,8 @@ destructor TSaveInfoMgr.Destroy;
151
151
end ;
152
152
153
153
procedure TSaveInfoMgr.DoExecute ;
154
+ resourcestring
155
+ sDlgCaption = ' Save Snippet Information for %s' ;
154
156
var
155
157
Encoding: TEncoding; // encoding to use for output file
156
158
FileContent: string; // output file content before encoding
@@ -164,6 +166,9 @@ procedure TSaveInfoMgr.DoExecute;
164
166
1
165
167
);
166
168
fSaveDlg.FileName := fSourceFileInfo.DefaultFileName;
169
+ fSaveDlg.Title := Format(sDlgCaption, [
170
+ (fView as ISnippetView).Snippet.DisplayName]
171
+ );
167
172
// Display dialog box and save file if user OKs
168
173
if fSaveDlg.Execute then
169
174
begin
@@ -269,7 +274,6 @@ constructor TSaveInfoMgr.InternalCreate(AView: IView);
269
274
DlgHelpKeyword = ' SnippetInfoFileDlg' ;
270
275
resourcestring
271
276
sDefFileName = ' SnippetInfo' ;
272
- sDlgCaption = ' Save Snippet Information' ;
273
277
// descriptions of supported file filter strings
274
278
sRTFDesc = ' Rich text file' ;
275
279
sTextDesc = ' Plain text file' ;
@@ -312,7 +316,6 @@ constructor TSaveInfoMgr.InternalCreate(AView: IView);
312
316
fSourceFileInfo.DefaultFileName := sDefFileName;
313
317
314
318
fSaveDlg := TSaveSourceDlg.Create(nil );
315
- fSaveDlg.Title := sDlgCaption;
316
319
fSaveDlg.HelpKeyword := DlgHelpKeyword;
317
320
fSaveDlg.CommentStyle := TCommentStyle.csNone;
318
321
fSaveDlg.EnableCommentStyles := False;
0 commit comments