Kaydet (Commit) 23eb3939 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#39026 SfxPickList singleton wasn't instantiated

üst 1c923dc1
......@@ -267,6 +267,10 @@ bool SfxApplication::Initialize_Impl()
pAppData_Impl->m_pSbxErrorHdl = new SfxErrorHandler(
RID_BASIC_START, ERRCODE_AREA_SBX, ERRCODE_AREA_SBX_END, pAppData_Impl->pBasicResMgr );
//ensure instantiation of listener that manages the internal recently-used
//list
SfxPickList::ensure();
DBG_ASSERT( !pAppData_Impl->pAppDispat, "AppDispatcher already exists" );
pAppData_Impl->pAppDispat = new SfxDispatcher((SfxDispatcher*)0);
pAppData_Impl->pSlotPool = new SfxSlotPool;
......
......@@ -68,6 +68,7 @@ class SfxPickList : public SfxListener
public:
static SfxPickList& Get();
static void ensure() { Get(); }
sal_uInt32 GetAllowedMenuSize() { return m_nAllowedMenuSize; }
sal_uInt32 GetNumOfEntries() const { return m_aPicklistVector.size(); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment