flip conditional in wizard xdg events to call xdg function first

when curpage was not set, the xdg checking function would never be run,
preventing the wizard from advancing

fix T2622
This commit is contained in:
Mike Blumenkrantz 2015-07-30 13:15:50 -04:00
parent 24ec288b3c
commit 043a0b13bb
1 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ _e_wizard_cb_desktops_update(void *data EINA_UNUSED, int ev_type EINA_UNUSED, vo
if ((e) && (e->error))
xdg_error = EINA_TRUE;
got_desktops = EINA_TRUE;
if (curpage && _e_wizard_check_xdg())
if (_e_wizard_check_xdg() && curpage)
_e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
}
@ -406,7 +406,7 @@ static Eina_Bool
_e_wizard_cb_icons_update(void *data EINA_UNUSED, int ev_type EINA_UNUSED, void *ev EINA_UNUSED)
{
got_icons = EINA_TRUE;
if (curpage && _e_wizard_check_xdg())
if (_e_wizard_check_xdg() && curpage)
_e_wizard_next_xdg();
return ECORE_CALLBACK_PASS_ON;
}