EmailAccountView *view = (EmailAccountView *) data;
- if (view->popup) {
- evas_object_del(view->popup);
- view->popup = NULL;
- }
+ DELETE_EVAS_OBJECT(view->popup);
view->it = NULL;
view->editmode = false;
char *mailbox_alias;
bool generate_result = _generate_email_name_and_alias(view, &mailbox_name, &mailbox_alias);
- if (view->popup) {
- evas_object_del(view->popup);
- view->popup = NULL;
- }
+ DELETE_EVAS_OBJECT(view->popup);
+
if (!generate_result) {
debug_log("generating email and alias error occured");
return;
char *mailbox_name;
char *mailbox_alias;
bool generate_result = _generate_email_name_and_alias(view, &mailbox_name, &mailbox_alias);
- if (view->popup) {
- evas_object_del(view->popup);
- view->popup = NULL;
- }
+ DELETE_EVAS_OBJECT(view->popup);
+
if (!generate_result) {
debug_log("generating email and alias error occured");
return;
EmailAccountView *view = (EmailAccountView *) data;
- if (view->popup) {
- evas_object_del(view->popup);
- view->popup = NULL;
- }
+ DELETE_EVAS_OBJECT(view->popup);
view->it = NULL;
view->target_mailbox_id = -1;
view->editmode = false;