summaryrefslogtreecommitdiff
path: root/framework/source/uielement/recentfilesmenucontroller.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-01-07 22:57:58 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-01-07 22:59:49 +0100
commitd930cefbe65d8b7f21100fcbf2ddcd977dd15cb1 (patch)
treedcbc4a0ebedb66eeae11b8b70daf5d53b3903e4c /framework/source/uielement/recentfilesmenucontroller.cxx
parent331518c39551afa3c63d0c2fc394af0e9566aa43 (diff)
Startcenter: Refresh RecentDocsView when select 'Clear list' menu option
Change-Id: I9cbe647563699b9b610661003084d2cd16093f9a
Diffstat (limited to 'framework/source/uielement/recentfilesmenucontroller.cxx')
-rw-r--r--framework/source/uielement/recentfilesmenucontroller.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/source/uielement/recentfilesmenucontroller.cxx b/framework/source/uielement/recentfilesmenucontroller.cxx
index 586a9af7dcf0..3866355ff578 100644
--- a/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -281,7 +281,12 @@ void SAL_CALL RecentFilesMenuController::itemSelected( const css::awt::MenuEvent
OUStringToOString( aCommand, RTL_TEXTENCODING_UTF8 ).getStr() );
if ( aCommand.startsWith( CMD_CLEAR_LIST ) )
+ {
SvtHistoryOptions().Clear( ePICKLIST );
+ dispatchCommand(
+ "vnd.org.libreoffice.recentdocs:ClearRecentFileList",
+ ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >() );
+ }
else
executeEntry( rEvent.MenuId-1 );
}