Change-Id: I97eeb8decf4731019d1df8b830ce90393287de19
{
//If any popup is activated, deactivate the popup first.
if (this->deactivate_popup(true))
- {
+ {
return false;
+ }
- }
if (this->menu)
{
if (this->menu->is_activated())
bool ui_iface_viewmgr_impl::pop_view()
{
+ //last page to be popped.
+ ui_iface_view*view = this->view_list.back();
+
+ if (view->get_event_block())
+ {
+ return false;
+ }
+
//FIXME: No more view?
if (this->get_view_count() == 0)
{
return true;
}
- //last page to be popped.
- ui_iface_view*view = this->view_list.back();
view->on_deactivate();
this->set_event_block(view, true);