Changes: Make sure MApplicationPage::backButtonClicked gets called when escape mode is auto Fixes: NB#198425 - widgetsgallery - Clicking on thumnail in Grid page does nothing in a second attempt
Changes: Make sure MApplicationPage::backButtonClicked gets called when escape mode is auto
Fixes: NB#198425 - widgetsgallery - Clicking on thumnail in Grid page does nothing in a second attempt

RevBy: Marcin Miklas
Details:
navigationBar::backButtonClicked() was being connected to both page::dismiss()
and page::backButtonClicked().

It seems that Qt gives no guarantees on the order that the connections get called.
page::dismiss() was getting called before page::backButtonClicked() and the processing
of the dissmiss() includes disconnecting navigationBar::backButtonClicked() from
page::backButtonClicked().

Connecting page::dismiss() to page::backButtonClicked() instead of
navigationBar::backButtonClicked() ensures that the page's signal is emitted before
the page gets dismissed.

nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch,nemomobile-graveyard/libmeegotouch