Fix crash in Chooser with groups caused by failure to identify ChooserView 17/107217/2
authorEugene Kurzberg <i.kurtsberg@samsung.com>
Mon, 26 Dec 2016 16:19:28 +0000 (18:19 +0200)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 27 Dec 2016 14:17:47 +0000 (06:17 -0800)
as Naviframe.

Change-Id: Ib70121ddb6f2c7df358dce255d676edaf1f08eb2
Signed-off-by: Eugene Kurzberg <i.kurtsberg@samsung.com>
lib-apps-common/inc/Ui/Naviframe.h
lib-apps-common/src/Ui/View.cpp

index 137c06c..de7c2a2 100644 (file)
@@ -29,6 +29,8 @@ namespace Ui
        class EXPORT_API Naviframe : public Navigator
        {
        public:
+               DEFINE_CLASS_TYPE(Naviframe, Navigator)
+
                Naviframe();
 
                /**
index 72f1af3..dbbecbf 100644 (file)
@@ -27,7 +27,8 @@ View::View()
 
 Navigator *View::getNavigator() const
 {
-       return findParent<Navigator>();
+       Evas_Object *parent = elm_object_parent_widget_get(getEvasObject());
+       return findParent<Navigator>(parent);
 }
 
 NavigatorPage *View::getPage() const