if (__pPopUp != null)
{
__pPopUp->Initialize();
- AddControl(__pPopUp);
+// AddControl(__pPopUp);
}
__pSearchListView = new(std::nothrow) ListView();
case IDA_CONTEXT_ITEM_SHARE:
{
AppLogDebug("OnListViewContextItemStateChanged Share");
-
+ if (__pPopUp != null)
+ {
+ delete __pPopUp;
+ __pPopUp = null;
+ }
+ __pPopUp = new(std::nothrow) SharePopup();
+ __pPopUp->Initialize();
BookmarkData* pBookmark = dynamic_cast<BookmarkData*>(__pData->GetAt(index));
if (pBookmark != null)
{
__pPopUp->AddShareInfo(pShareInfo);
}
- if (__pPopUp != null)
- {
- __pPopUp->SetShowState(true);
- __pPopUp->Show();
- }
+ __pPopUp->SetShowState(true);
+ __pPopUp->Show();
+
}
break;
default: