summaryrefslogtreecommitdiff
path: root/src/mf-ug-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mf-ug-main.c')
-rw-r--r--src/mf-ug-main.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mf-ug-main.c b/src/mf-ug-main.c
index 6ee0eec..e9935a2 100644
--- a/src/mf-ug-main.c
+++ b/src/mf-ug-main.c
@@ -894,15 +894,9 @@ static void __mf_ug_main_set_option_status(void *data, app_control_h app_control
}
__mf_ug_main_set_marked_mode(ugd, marked_mode);
- ugd->limitsize = -1;
- char *max_size = NULL;
- app_control_get_extra_data(app_control, APP_CONTROL_DATA_TOTAL_SIZE, &(max_size));
- if (max_size) {
- ugd->limitsize = atoi(max_size);
- UG_SAFE_FREE_CHAR(max_size);
- }
+
char *number = NULL;
- app_control_get_extra_data(app_control, APP_CONTROL_DATA_TOTAL_COUNT, &number);
+ app_control_get_extra_data(app_control, "max-count", &number);
__mf_ug_main_set_max_len_option(ugd, number);
UG_SAFE_FREE_CHAR(number);