Corretto il comportamento della set.

Nel caso di annullamento dell' operazione non riabilitava la propria
scelta di menu'.


git-svn-id: svn://10.65.10.50/trunk@12 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-08-16 16:07:16 +00:00
parent f59ba814ab
commit 7a60c07357

View File

@ -1005,8 +1005,11 @@ void TPrinter::set()
mask.set(MSK_1_FILENAME, _printerfile); mask.set(MSK_1_FILENAME, _printerfile);
mask.reset(MSK_1_SAVE); mask.reset(MSK_1_SAVE);
if (mask.run() == K_ESC) return; if (mask.run() == K_ESC)
{
MainApp()->enable_menu_item(M_FILE_PG_SETUP);
return;
}
if (mask.get(MSK_1_SAVE).not_empty()) if (mask.get(MSK_1_SAVE).not_empty())
{ {
TString s("printer.def"); TString s("printer.def");
@ -1131,6 +1134,7 @@ void TPrinter::set()
if (_print_rcd != NULL) free_print_rcd(_print_rcd); if (_print_rcd != NULL) free_print_rcd(_print_rcd);
_print_rcd = get_print_rcd(&_print_rcd_size); _print_rcd = get_print_rcd(&_print_rcd_size);
set_win_formlen(); set_win_formlen();
MainApp()->enable_menu_item(M_FILE_PG_SETUP);
return; return;
} }