| 957 | return; |
| 958 | } |
| 959 | |
| 960 | if (active->prompt_box != NULL) |
| 961 | { |
| 962 | active->prompt_box->deactivate(); |
| 963 | } |
| 964 | shared.active = NULL; |
| 965 | active->dialog_box->flag.visible = false; |
| 966 | } |
| 967 | |
| 968 | static void activate(ztalkbox& t) |
| 969 | { |
| 970 | deactivate(); |
| 971 | |
| 972 | shared.active = &t; |
| 973 | |
| 974 | if (t.dialog_box->flag.active) |
| 975 | { |
| 976 | t.dialog_box->deactivate(); |
| 977 | } |
| 978 | |
| 979 | if (t.prompt_box != NULL && t.flag.visible) |
| 980 | { |
| 981 | t.prompt_box->activate(); |
no test coverage detected