[Libreoffice-commits] .: sfx2/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Aug 19 07:05:20 PDT 2011
sfx2/source/appl/appinit.cxx | 4 ++++
sfx2/source/inc/sfxpicklist.hxx | 1 +
2 files changed, 5 insertions(+)
New commits:
commit 23eb3939a750fbfd3157bd7d3777ae3ec0282b02
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Aug 19 15:04:07 2011 +0100
Resolves: fdo#39026 SfxPickList singleton wasn't instantiated
diff --git a/sfx2/source/appl/appinit.cxx b/sfx2/source/appl/appinit.cxx
index cafe3ef..598f412 100644
--- a/sfx2/source/appl/appinit.cxx
+++ b/sfx2/source/appl/appinit.cxx
@@ -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;
diff --git a/sfx2/source/inc/sfxpicklist.hxx b/sfx2/source/inc/sfxpicklist.hxx
index 2ac9d8b..855eb99 100644
--- a/sfx2/source/inc/sfxpicklist.hxx
+++ b/sfx2/source/inc/sfxpicklist.hxx
@@ -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(); }
More information about the Libreoffice-commits
mailing list