From 4022a834b55c8db787916f1a6301f1402b149e4c Mon Sep 17 00:00:00 2001 From: Tomcsik Bence Date: Thu, 1 Mar 2012 13:24:37 +0100 Subject: [PATCH] Object Catalog button now toggles display of the dialog TODO: implement a toggle toolbar button that shows the toggle state --- basctl/source/basicide/basides1.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basctl/source/basicide/basides1.cxx b/basctl/source/basicide/basides1.cxx index 63cc273de0cb..8ca700ba37bb 100644 --- a/basctl/source/basicide/basides1.cxx +++ b/basctl/source/basicide/basides1.cxx @@ -432,7 +432,10 @@ void BasicIDEShell::ExecuteGlobal( SfxRequest& rReq ) break; case SID_BASICIDE_OBJCAT: { - ShowObjectDialog( sal_True, sal_True ); + if ( pObjectCatalog ) + ShowObjectDialog( sal_False, sal_True ); + else + ShowObjectDialog( sal_True, sal_True ); } break; case SID_BASICIDE_NAMECHANGEDONTAB: