NSE_42715
[apps/osp/Gallery.git] / src / GlSettingMainForm.cpp
index e829eef..ede10df 100644 (file)
@@ -42,6 +42,7 @@ using namespace Tizen::Ui::Scenes;
 SettingMainForm::SettingMainForm(void)
        : __pList(null)
        , __pPresentationModel(null)
+       , __contentUpdated(false)
 {
        AppLogDebug("ENTER");
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
@@ -89,13 +90,6 @@ SettingMainForm::OnInitializing(void)
                __pList->AddGroupedListViewItemEventListener(*this);
        }
 
-       Footer* pFooter = GetFooter();
-       if (pFooter)
-       {
-               AppLogDebug("setting back button");
-               pFooter->SetBackButtonEnabled(true);
-       }
-
        SetFormBackEventListener(this);
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 
@@ -106,6 +100,7 @@ result
 SettingMainForm::OnTerminating(void)
 {
        AppLogDebug("ENTER");
+       SettingInfo::RemoveSettingEventListener(*this);
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 
        return E_SUCCESS;