[TSAM-6202 TSAM-6207] Corrected the logic in case of vcf file 44/79244/1 submit/tizen/20160712.035757 submit/tizen_mobile/20160709.111428
authorRahul Dadhich <r.dadhich@samsung.com>
Sat, 9 Jul 2016 10:56:59 +0000 (16:26 +0530)
committerRahul Dadhich <r.dadhich@samsung.com>
Sat, 9 Jul 2016 10:56:59 +0000 (16:26 +0530)
Change-Id: I2122934ff0e4606dee66e34a63c583908e788878
Signed-off-by: Rahul Dadhich <r.dadhich@samsung.com>
src/mf-ug-main.c

index c98451d..1db3f9d 100644 (file)
@@ -889,10 +889,15 @@ static void __mf_ug_main_set_operation_select_mode(void *data, const char *selec
                char *operation_select_mode = NULL;
                app_control_get_extra_data(app_control, APP_CONTROL_DATA_SELECTION_MODE, &operation_select_mode);
                ug_error("operation_select_mode is [%s]", operation_select_mode);
-               if (operation_select_mode) {
+               if (select_mode && !strcmp(select_mode, "IMPORT_PATH_SELECT")) {
+                       ug_error("Import operation");
                        __mf_ug_main_set_operation_select_mode(ugd, operation_select_mode);
                } else {
-                       __mf_ug_main_set_operation_select_mode(ugd, MF_BUNDLE_SELECTION_MODE_SINGLE);
+                       if (operation_select_mode) {
+                               __mf_ug_main_set_operation_select_mode(ugd, operation_select_mode);
+                       } else {
+                               __mf_ug_main_set_operation_select_mode(ugd, MF_BUNDLE_SELECTION_MODE_SINGLE);
+                       }
                }
                UG_SAFE_FREE_CHAR(operation_select_mode);
 #endif