In nodes setup added check for paths when directory sessions are selected

This commit is contained in:
Michiel Broek 2006-06-12 20:46:43 +00:00
parent 28683c7954
commit d638b1adc4
2 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,10 @@ $Id$
v0.83.21 10-Jun-2006 v0.83.21 10-Jun-2006
mbsetup:
In nodes setup added check for paths when directory sessions
are selected.
v0.83.20 27-May-2006 - 10-Jun-2006 v0.83.20 27-May-2006 - 10-Jun-2006

View File

@ -1143,7 +1143,12 @@ int EditNodeRec(int Area)
mbse_mvprintw(17, 6, "11. Statistics"); mbse_mvprintw(17, 6, "11. Statistics");
switch(select_menu(11)) { switch(select_menu(11)) {
case 0: crc1 = 0xffffffff; case 0: if (((nodes.Session_out == S_DIR) && (strlen(nodes.Dir_out_path) == 0)) ||
((nodes.Session_in == S_DIR) && (strlen(nodes.Dir_in_path) == 0))) {
errmsg((char *)"Set a path for directory sessions screen 7.8");
break;
}
crc1 = 0xffffffff;
crc1 = upd_crc32((char *)&nodes, crc1, nodeshdr.recsize); crc1 = upd_crc32((char *)&nodes, crc1, nodeshdr.recsize);
if ((crc != crc1) || GrpChanged) { if ((crc != crc1) || GrpChanged) {
if (yes_no((char *)"Record is changed, save") == 1) { if (yes_no((char *)"Record is changed, save") == 1) {