Add proper device parameter when device eject 96/184896/1
authorJihoon Jung <jh8801.jung@samsung.com>
Tue, 24 Jul 2018 06:24:18 +0000 (15:24 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Tue, 24 Jul 2018 06:24:18 +0000 (15:24 +0900)
Change-Id: Ibf62dd96c37f90623bbe13c20de48f0870682806
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
test/mdg-manager.c

index f06cd8e..01a5b3b 100755 (executable)
@@ -137,12 +137,12 @@ static int run_device_eject(MManager *mm, struct menu_data *menu)
                }
        }
 
-       if (NULL == found_device_list) {
+       if (NULL == found_invited_device_list) {
                msgr("Find device first");
                return RET_FAILURE;
        }
 
-       device = g_list_nth_data(found_device_list, idx - 1);
+       device = g_list_nth_data(found_invited_device_list, idx - 1);
        if (NULL == device) {
                msgr("Failed to g_hash_table_find");
                return RET_FAILURE;
@@ -1219,7 +1219,7 @@ static struct menu_data menu_group_invite_device[] = {
 
 static struct menu_data menu_group_eject_device[] = {
        { "0", "Show Found Group(s)", NULL, run_group_show, NULL },
-       { "1", "Show Found Device(s)", NULL, run_devices_show, NULL },
+       { "1", "Show Found Invited Device(s)", NULL, run_invited_devices_show, NULL },
        { "2", "Group Index", NULL, NULL, group_idx },
        { "3", "Device Index", NULL, NULL, device_idx },
        { "4", "Run", NULL, run_device_eject, NULL },