Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 679ce0a

Browse files
Improve display of file encodings in TSaveSourceDlg
The "File encoding" label and combo box in TSaveSourceDlg is now disabled when it only contains one item.
1 parent 122df99 commit 679ce0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎Src/USaveSourceDlg.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ procedure TSaveSourceDlg.DoTypeChange;
495495
fCmbEncoding.ItemIndex := IndexOfEncodingType(fSelectedEncoding);
496496
if fCmbEncoding.ItemIndex = -1 then
497497
fCmbEncoding.ItemIndex := 0;
498+
fCmbEncoding.Enabled := fCmbEncoding.Items.Count > 1;
499+
fLblEncoding.Enabled := fCmbEncoding.Enabled;
498500
DoEncodingChange;
499501

500502
inherited;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /