diff options
author | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2018-10-10 13:55:59 +0300 |
---|---|---|
committer | Muhammet Kara <muhammet.kara@pardus.org.tr> | 2018-10-10 14:33:39 +0200 |
commit | 0d4abd0a5ae687e0503fd4185406fc02079951fd (patch) | |
tree | 7234730709ef5e2ad074ea1c9ca9bc434770a956 /cui | |
parent | 0bf61855164af5751e78ca8626c10d604b1ab13b (diff) |
tdf#99776: Preload a persona category initially
Change-Id: Ib47470fed9251611cce043790cb2c1255495524a
Reviewed-on: https://gerrit.libreoffice.org/61609
Tested-by: Jenkins
Reviewed-by: Muhammet Kara <muhammet.kara@pardus.org.tr>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/personalization.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/personalization.hxx | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx index ae314e1019c8..70a6890df846 100644 --- a/cui/source/options/personalization.cxx +++ b/cui/source/options/personalization.cxx @@ -208,6 +208,8 @@ SelectPersonaDialog::SelectPersonaDialog( vcl::Window *pParent ) nIndex->SetClickHdl( LINK( this, SelectPersonaDialog, SelectPersona ) ); nIndex->Disable(); } + + m_vSearchSuggestions[DEFAULT_PERSONA_CATEGORY]->Click(); } SelectPersonaDialog::~SelectPersonaDialog() diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx index 20ee552dca05..9f214bc1bfdc 100644 --- a/cui/source/options/personalization.hxx +++ b/cui/source/options/personalization.hxx @@ -21,6 +21,12 @@ #define CATEGORYCOUNT 6 // Number of persona categories #define MAX_RESULTS 9 // Maximum number of search results #define MAX_DEFAULT_PERSONAS 3 // Maximum number of default personas +/* + * The category which will be loaded initially. + Should be a non-negative integer lower than CATEGORYCOUNT + Categories are defined in RID_SVXSTR_PERSONA_CATEGORIES + */ +#define DEFAULT_PERSONA_CATEGORY 0 class FixedText; class FixedHyperlink; |