summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorDirk Voelzke <dv@openoffice.org>2010-07-23 09:25:32 +0200
committerDirk Voelzke <dv@openoffice.org>2010-07-23 09:25:32 +0200
commit74544584d1fd6cfb7b059d5915f6a69da5ec189e (patch)
tree2fd2ccc3f6679478d27bba8bb68f56d840b6eed2 /desktop
parent6fc85e3c5c85d0fc2e5e9f9516bcce8b8eaf94a6 (diff)
jl154:#i133370# Remove 'disable' from popup menu for shared extensions
Diffstat (limited to 'desktop')
-rwxr-xr-xdesktop/source/deployment/gui/dp_gui_dialog2.cxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 87f70e449b9d..78b29624b16e 100755
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -372,11 +372,13 @@ MENU_COMMAND ExtBoxWithBtns_Impl::ShowPopupMenu( const Point & rPos, const long
if ( ! GetEntryData( nPos )->m_bLocked )
{
- if ( GetEntryData( nPos )->m_eState == REGISTERED )
- aPopup.InsertItem( CMD_DISABLE, DialogHelper::getResourceString( RID_CTX_ITEM_DISABLE ) );
- else if ( GetEntryData( nPos )->m_eState != NOT_AVAILABLE )
- aPopup.InsertItem( CMD_ENABLE, DialogHelper::getResourceString( RID_CTX_ITEM_ENABLE ) );
-
+ if ( GetEntryData( nPos )->m_bUser )
+ {
+ if ( GetEntryData( nPos )->m_eState == REGISTERED )
+ aPopup.InsertItem( CMD_DISABLE, DialogHelper::getResourceString( RID_CTX_ITEM_DISABLE ) );
+ else if ( GetEntryData( nPos )->m_eState != NOT_AVAILABLE )
+ aPopup.InsertItem( CMD_ENABLE, DialogHelper::getResourceString( RID_CTX_ITEM_ENABLE ) );
+ }
aPopup.InsertItem( CMD_REMOVE, DialogHelper::getResourceString( RID_CTX_ITEM_REMOVE ) );
}