tdf#39279: Search for Thunderbird address books uses first ones found
Thank you Lionel about your advice for this one. Change-Id: I4ec51b694d3b674158cb7fb4efa580e084cffda9 Reviewed-on: https://gerrit.libreoffice.org/15163 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
This commit is contained in:
committed by
Lionel Elie Mamane
parent
b2f377d6f4
commit
21a8671e24
@@ -63,6 +63,10 @@ namespace
|
|||||||
const size_t NB_PRODUCTS = 3;
|
const size_t NB_PRODUCTS = 3;
|
||||||
const size_t NB_CANDIDATES = 4;
|
const size_t NB_CANDIDATES = 4;
|
||||||
|
|
||||||
|
// The order (index) of entries in DefaultProductDir and
|
||||||
|
// ProductRootEnvironmentVariable *must* match the constants
|
||||||
|
// (minus 1) in offapi/com/sun/star/mozilla/MozillaProductType.idl
|
||||||
|
// DO NOT CHANGE THE ORDER; ADD ONLY TO THE END
|
||||||
static const char* DefaultProductDir[NB_PRODUCTS][NB_CANDIDATES] =
|
static const char* DefaultProductDir[NB_PRODUCTS][NB_CANDIDATES] =
|
||||||
{
|
{
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
|
@@ -46,11 +46,12 @@ namespace connectivity
|
|||||||
|
|
||||||
sal_Int32 ProfileAccess::LoadProductsInfo()
|
sal_Int32 ProfileAccess::LoadProductsInfo()
|
||||||
{
|
{
|
||||||
//load SeaMonkey 2 profiles to m_ProductProfileList
|
//tdf#39279: LO should search Thunderbird first then Seamonkey and finally Firefox
|
||||||
sal_Int32 count = LoadXPToolkitProfiles(MozillaProductType_Mozilla);
|
|
||||||
|
|
||||||
//load thunderbird profiles to m_ProductProfileList
|
//load thunderbird profiles to m_ProductProfileList
|
||||||
count += LoadXPToolkitProfiles(MozillaProductType_Thunderbird);
|
sal_Int32 count = LoadXPToolkitProfiles(MozillaProductType_Thunderbird);
|
||||||
|
|
||||||
|
//load SeaMonkey 2 profiles to m_ProductProfileList
|
||||||
|
count += LoadXPToolkitProfiles(MozillaProductType_Mozilla);
|
||||||
|
|
||||||
//load firefox profiles to m_ProductProfileList
|
//load firefox profiles to m_ProductProfileList
|
||||||
//firefox profile does not containt address book, but maybe others need them
|
//firefox profile does not containt address book, but maybe others need them
|
||||||
|
@@ -63,6 +63,10 @@ namespace
|
|||||||
const size_t NB_PRODUCTS = 3;
|
const size_t NB_PRODUCTS = 3;
|
||||||
const size_t NB_CANDIDATES = 4;
|
const size_t NB_CANDIDATES = 4;
|
||||||
|
|
||||||
|
// The order (index) of entries in DefaultProductDir and
|
||||||
|
// ProductRootEnvironmentVariable *must* match the constants
|
||||||
|
// (minus 1) in offapi/com/sun/star/mozilla/MozillaProductType.idl
|
||||||
|
// DO NOT CHANGE THE ORDER; ADD ONLY TO THE END
|
||||||
static const char* DefaultProductDir[NB_PRODUCTS][NB_CANDIDATES] =
|
static const char* DefaultProductDir[NB_PRODUCTS][NB_CANDIDATES] =
|
||||||
{
|
{
|
||||||
#if defined(XP_WIN)
|
#if defined(XP_WIN)
|
||||||
|
@@ -125,11 +125,12 @@ namespace connectivity
|
|||||||
|
|
||||||
sal_Int32 ProfileAccess::LoadProductsInfo()
|
sal_Int32 ProfileAccess::LoadProductsInfo()
|
||||||
{
|
{
|
||||||
//load SeaMonkey 2 profiles to m_ProductProfileList
|
//tdf#39279: LO should search Thunderbird first then Seamonkey and finally Firefox
|
||||||
sal_Int32 count = LoadXPToolkitProfiles(MozillaProductType_Mozilla);
|
|
||||||
|
|
||||||
//load thunderbird profiles to m_ProductProfileList
|
//load thunderbird profiles to m_ProductProfileList
|
||||||
count += LoadXPToolkitProfiles(MozillaProductType_Thunderbird);
|
sal_Int32 count = LoadXPToolkitProfiles(MozillaProductType_Thunderbird);
|
||||||
|
|
||||||
|
//load SeaMonkey 2 profiles to m_ProductProfileList
|
||||||
|
count += LoadXPToolkitProfiles(MozillaProductType_Mozilla);
|
||||||
|
|
||||||
//load firefox profiles to m_ProductProfileList
|
//load firefox profiles to m_ProductProfileList
|
||||||
//firefox profile does not containt address book, but maybe others need them
|
//firefox profile does not containt address book, but maybe others need them
|
||||||
|
Reference in New Issue
Block a user