You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ar...@apache.org on 2025/02/10 20:59:59 UTC
(openoffice) 02/03: Clear URL history together with recent files
This is an automated email from the ASF dual-hosted git repository.
ardovm pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 9dc036df109b1360e981295a08650bc8c085306f
Author: Arrigo Marchiori <ar...@yahoo.it>
AuthorDate: Sun Jan 19 22:20:13 2025 +0100
Clear URL history together with recent files
(cherry picked from commit 8eeb065fa29d93cf60b4241183b37470fdacc40d)
---
main/framework/source/uielement/recentfilesmenucontroller.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/main/framework/source/uielement/recentfilesmenucontroller.cxx b/main/framework/source/uielement/recentfilesmenucontroller.cxx
index 65f90f51e1..843be729e2 100644
--- a/main/framework/source/uielement/recentfilesmenucontroller.cxx
+++ b/main/framework/source/uielement/recentfilesmenucontroller.cxx
@@ -317,9 +317,10 @@ void SAL_CALL RecentFilesMenuController::itemSelected( const css::awt::MenuEvent
OSL_TRACE( "RecentFilesMenuController::itemSelected() - Command : %s",
rtl::OUStringToOString( aCommand, RTL_TEXTENCODING_UTF8 ).getStr() );
- if ( aCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( CMD_CLEAR_LIST ) ) )
+ if ( aCommand.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( CMD_CLEAR_LIST ) ) ) {
SvtHistoryOptions().Clear( ePICKLIST );
- else
+ SvtHistoryOptions().Clear( eHISTORY );
+ } else
executeEntry( rEvent.MenuId-1 );
}
}