From c8b6437fb60e0428d615ca5c4b532f79b721785a Mon Sep 17 00:00:00 2001 From: Jesús Corrius Date: Sat, 24 Aug 2013 13:55:46 +0200 Subject: Create the AppUserModelID registry values correctly This commit is a backport from master. The original code is totally broken and creates useless registry values in a wrong place. The corrected patch allows LO to keep track of the MSO file types opened by our application in the shell's "recent documents" list. Change-Id: I5db0a7f166ef73fe21a5f3fc891f86a91e1914d5 Reviewed-on: https://gerrit.libreoffice.org/5603 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- scp2/inc/macros.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scp2') diff --git a/scp2/inc/macros.inc b/scp2/inc/macros.inc index fa7c350bf9f0..f0ed12a270b7 100755 --- a/scp2/inc/macros.inc +++ b/scp2/inc/macros.inc @@ -236,11 +236,12 @@ End End #define REGISTRY_ENTRY_APPUSERMODELID(name,modid,doc_type) \ - RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,AppUserModelID) \ + RegistryItem CONCAT3(gid_Regitem_Openoffice_,name,_AppUserModelID) \ ParentID = PREDEFINED_HKEY_CLASSES_ROOT; \ ModuleID = modid; \ - ComponentCondition = "VersionNT >= 600"; \ - Subkey = STRING(AppUserModelID); \ + ComponentCondition = STRING(VersionNT >= 601); \ + Subkey = STRING(CONCAT2(LibreOffice.,name)); \ + Name = STRING(AppUserModelID); \ Value = STRING(CONCAT2(TheDocumentFoundation.LibreOffice.,doc_type)); \ End -- cgit v1.2.3