summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cui/source/customize/cfg.cxx14
-rw-r--r--cui/source/inc/cfg.hxx1
2 files changed, 3 insertions, 12 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index f7c6d6ce0774..195517218184 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1658,9 +1658,9 @@ SvTreeListEntry* SvxConfigPage::AddFunction(
if ( pCurEntry->GetCommand() == pNewEntryData->GetCommand() )
{
- // asynchronous error message, because of MsgBoxes
- PostUserEvent(
- LINK( this, SvxConfigPage, AsyncInfoMsg ), nullptr, true );
+ ScopedVclPtrInstance<MessageDialog>(this,
+ CuiResId( RID_SVXSTR_MNUCFG_ALREADY_INCLUDED ),
+ VclMessageType::Info)->Execute();
delete pNewEntryData;
return nullptr;
}
@@ -1771,14 +1771,6 @@ SvTreeListEntry* SvxConfigPage::InsertEntryIntoUI(
return pNewEntry;
}
-IMPL_LINK_NOARG( SvxConfigPage, AsyncInfoMsg, void*, void )
-{
- // Asynchronous msg because of D&D
- ScopedVclPtrInstance<MessageDialog>(this,
- CuiResId( RID_SVXSTR_MNUCFG_ALREADY_INCLUDED ),
- VclMessageType::Info)->Execute();
-}
-
IMPL_LINK( SvxConfigPage, MoveHdl, Button *, pButton, void )
{
MoveEntry(pButton == m_pMoveUpButton);
diff --git a/cui/source/inc/cfg.hxx b/cui/source/inc/cfg.hxx
index dda5a5fe44bc..239860943a7b 100644
--- a/cui/source/inc/cfg.hxx
+++ b/cui/source/inc/cfg.hxx
@@ -380,7 +380,6 @@ private:
SaveInData* pCurrentSaveInData;
DECL_LINK( SelectSaveInLocation, ListBox&, void );
- DECL_LINK( AsyncInfoMsg, void*, void );
DECL_LINK( SearchUpdateHdl, Edit&, void );
protected: