From 984a960b27fa1d4d37ceae86b98260c8d9d70592 Mon Sep 17 00:00:00 2001 From: bonazzi Date: Mon, 27 Feb 2017 14:31:32 +0000 Subject: [PATCH] Patch level : 12.0 358 Files correlati : pa0.exe Corretto il comportamento del tasto Tutti git-svn-id: svn://10.65.10.50/branches/R_10_00@23669 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/pa/pa0100.cpp | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/pa/pa0100.cpp b/src/pa/pa0100.cpp index 0861048fe..f4ad4af75 100644 --- a/src/pa/pa0100.cpp +++ b/src/pa/pa0100.cpp @@ -640,17 +640,19 @@ bool TPA_mask::on_field_event(TOperable_field& o, TField_event e, long jolly) break; case DLG_ALL: { - TSheet_field& docs = sfield(F_DOCS); - TString_array& sht = docs.rows_array(); - const int items = sht.items(); - - if (items > 0) + if (e == fe_button) { - const TString4 select = *(sht.row(0).get(0)) == 'X' ? "" : "X"; - for (int i = 0; i < items; i++) - sht.row(i).add(select, 0); - docs.force_update(); - // docs.show(); + TSheet_field& docs = sfield(F_DOCS); + TString_array& sht = docs.rows_array(); + const int items = sht.items(); + + if (items > 0) + { + const TString4 select = *(sht.row(0).get(0)) == 'X' ? "" : "X"; + for (int i = 0; i < items; i++) + sht.row(i).add(select, 0); + docs.force_update(); + } } } break;