Fix of DLG_ACTION handling in viewer.