From 2068dfb2b7789f96608772d29300c5290902de3b Mon Sep 17 00:00:00 2001 From: Priya Kohli Date: Fri, 30 Jun 2017 11:07:48 +0530 Subject: [PATCH] Removing New Network Popup on pressing Cancel/Done key. Change-Id: Ic36c92035ea86c5e7e4d87f7f65e639e0a0a2bfe Signed-off-by: Priya Kohli --- src/view/view_new_network.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/view/view_new_network.c b/src/view/view_new_network.c index cbdb925..d5c8d22 100644 --- a/src/view/view_new_network.c +++ b/src/view/view_new_network.c @@ -278,6 +278,11 @@ static void _button_clicked(struct _priv *priv, int id, Evas_Object *obj) if (!priv) return; + if (priv->new_network_popup) { + evas_object_hide(priv->new_network_popup); + evas_object_del(priv->new_network_popup); + priv->new_network_popup = NULL; + } switch (id) { case EO_BTN_DONE: if (EINA_FALSE == elm_object_disabled_get(priv->btn_done)) { -- 2.7.4