Commit f5c3e83886891c659953c849f28e89628844011f
1 parent
216bea79
Exists in
master
and in
3 other branches
Fixing issue with "selection" actions.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/selection/selection.c
| ... | ... | @@ -193,10 +193,10 @@ void do_select(H3270 *hSession, unsigned int start, unsigned int end, unsigned i |
| 193 | 193 | { |
| 194 | 194 | hSession->selected = 1; |
| 195 | 195 | hSession->cbk.set_selection(hSession,1); |
| 196 | + lib3270_notify_actions(hSession,LIB3270_ACTION_GROUP_SELECTION); | |
| 196 | 197 | } |
| 197 | 198 | |
| 198 | 199 | hSession->cbk.update_selection(hSession,start,end); |
| 199 | - lib3270_notify_actions(hSession,LIB3270_ACTION_GROUP_SELECTION); | |
| 200 | 200 | |
| 201 | 201 | } |
| 202 | 202 | |
| ... | ... | @@ -397,7 +397,7 @@ LIB3270_EXPORT int lib3270_has_selection(const H3270 *hSession) |
| 397 | 397 | if(check_online_session(hSession)) |
| 398 | 398 | return 0; |
| 399 | 399 | |
| 400 | - return hSession->selected; | |
| 400 | + return hSession->selected ? 1 : 0; | |
| 401 | 401 | } |
| 402 | 402 | |
| 403 | 403 | LIB3270_EXPORT int lib3270_get_selection_rectangle(H3270 *hSession, unsigned int *row, unsigned int *col, unsigned int *width, unsigned int *height) | ... | ... |