Set current encoding to ELCode if 'allowed encoding = 3'

SVN revision: 1998
This commit is contained in:
2008-01-14 11:01:38 +00:00
parent cbc4eed422
commit f7aa2d859f
+5 -3
View File
@@ -9013,12 +9013,14 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
else
allowed_encoding = 7;
enc_selected = 2; /* Default is HTML */
enc_selected = 2; /* Default is HTML */
if (allowed_encoding == 2) /* select ELCode if the only one allowed */
if (allowed_encoding == 2) /* select ELCode if the only one allowed */
enc_selected = 0;
else if (allowed_encoding == 1) /* select plain if the only one allowed */
else if (allowed_encoding == 1) /* select plain if the only one allowed */
enc_selected = 1;
else if (allowed_encoding == 3) /* select ELCode if only plain and ELCode allowed */
enc_selected = 0;
/* Overwrite from config file */
if (getcfg(lbs->name, "Default Encoding", str, sizeof(str)))