--- a/homescreenapp/hsdomainmodel/src/hspage.cpp Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/hsdomainmodel/src/hspage.cpp Thu May 27 12:46:08 2010 +0300
@@ -99,6 +99,9 @@
connectWidget(widget.data());
widget->setPage(this);
widget->initializeWidget();
+ if (widget->state() != HsWidgetHost::Initialized) {
+ continue;
+ }
widget->showWidget();
mWidgets.append(widget.data());
widget->setParentItem(this);
@@ -345,6 +348,11 @@
}
}
+int HsPage::pageIndex()
+{
+ return HsScene::instance()->pages().indexOf(this);
+}
+
void HsPage::connectWidget(HsWidgetHost *widget)
{
connect(widget, SIGNAL(widgetFinished(HsWidgetHost*)),