diff options
author | Abhishek Sansanwal <abhishek.s94@samsung.com> | 2017-10-23 15:27:27 +0530 |
---|---|---|
committer | Abhishek Sansanwal <abhishek.s94@samsung.com> | 2017-10-23 15:29:45 +0530 |
commit | c10b7d547b0282ee0f964b864157254f898d9420 (patch) | |
tree | 188780e8acffd1e0d9b37676b92e10735aedbdc3 | |
parent | e7e1950eae7040c38f7187a2310147202e37cf69 (diff) | |
download | wifi-c10b7d547b0282ee0f964b864157254f898d9420.tar.gz wifi-c10b7d547b0282ee0f964b864157254f898d9420.tar.bz2 wifi-c10b7d547b0282ee0f964b864157254f898d9420.zip |
Fixed bug where multiple password items were being added to menu
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I1a234874425ca2bac44a373dd7515aee6fa970b8
-rw-r--r-- | sources/wearable/src/wearable-circle/view/layout_add_network.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/wearable/src/wearable-circle/view/layout_add_network.c b/sources/wearable/src/wearable-circle/view/layout_add_network.c index ed8724f..ccdf190 100644 --- a/sources/wearable/src/wearable-circle/view/layout_add_network.c +++ b/sources/wearable/src/wearable-circle/view/layout_add_network.c @@ -399,6 +399,10 @@ void layout_add_network_free(layout_add_network_object *object) gboolean layout_add_network_insert_password_menu(layout_add_network_object *self) { + if (self->menu_item[ADD_NETWORK_MENU_PASSWORD]) { + WIFI_LOG_ERR("Already present. Don't add another menu"); + return TRUE; + } Elm_Object_Item *item = _append_password(self); if (item == NULL) { @@ -435,6 +439,7 @@ void layout_add_network_remove_menu(layout_add_network_object *self, { elm_object_item_del(self->menu_item[menu]); + self->menu_item[menu] = NULL; } gboolean layout_add_network_create(layout_add_network_object *self) |