Recent file list: small fix when no documents

(cherry picked from commit da18984094aa5ae4a66731bf581103298b133738)

Change-Id: I56413b68d28b206212561dcbf662940862cebeb7
This commit is contained in:
Ariel Constenla-Haile 2013-05-25 22:10:31 +00:00 committed by Caolán McNamara
parent 1e85fc5b2d
commit 16db62a9c0

View File

@ -186,7 +186,9 @@ void RecentFilesMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >
{ {
// No recent documents => insert "no document" string // No recent documents => insert "no document" string
pVCLPopupMenu->InsertItem( 1, String( FwkResId( STR_NODOCUMENT ) ) ); pVCLPopupMenu->InsertItem( 1, String( FwkResId( STR_NODOCUMENT ) ) );
pVCLPopupMenu->EnableItem( 1, sal_False ); // Do not disable it, otherwise the Toolbar controller and MenuButton
// will display SV_RESID_STRING_NOSELECTIONPOSSIBLE instead of STR_NODOCUMENT
pVCLPopupMenu->SetItemBits( 1, pVCLPopupMenu->GetItemBits( 1 ) | MIB_NOSELECT );
} }
} }
} }