Author: arielch
Date: Sat May 25 22:10:31 2013
New Revision: 1486374

URL: http://svn.apache.org/r1486374
Log:
Recent file list: small fix when no documents

Modified:
    
openoffice/trunk/main/framework/source/uielement/recentfilesmenucontroller.cxx

Modified: 
openoffice/trunk/main/framework/source/uielement/recentfilesmenucontroller.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/framework/source/uielement/recentfilesmenucontroller.cxx?rev=1486374&r1=1486373&r2=1486374&view=diff
==============================================================================
--- 
openoffice/trunk/main/framework/source/uielement/recentfilesmenucontroller.cxx 
(original)
+++ 
openoffice/trunk/main/framework/source/uielement/recentfilesmenucontroller.cxx 
Sat May 25 22:10:31 2013
@@ -206,7 +206,9 @@ void RecentFilesMenuController::fillPopu
         {
             // No recent documents => insert "no document" string
             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 );
         }
        }
 }


Reply via email to