Kaydet (Commit) 0d4abd0a authored tarafından Muhammet Kara's avatar Muhammet Kara

tdf#99776: Preload a persona category initially

Change-Id: Ib47470fed9251611cce043790cb2c1255495524a
Reviewed-on: https://gerrit.libreoffice.org/61609
Tested-by: Jenkins
Reviewed-by: 's avatarMuhammet Kara <muhammet.kara@pardus.org.tr>
üst 0bf61855
...@@ -208,6 +208,8 @@ SelectPersonaDialog::SelectPersonaDialog( vcl::Window *pParent ) ...@@ -208,6 +208,8 @@ SelectPersonaDialog::SelectPersonaDialog( vcl::Window *pParent )
nIndex->SetClickHdl( LINK( this, SelectPersonaDialog, SelectPersona ) ); nIndex->SetClickHdl( LINK( this, SelectPersonaDialog, SelectPersona ) );
nIndex->Disable(); nIndex->Disable();
} }
m_vSearchSuggestions[DEFAULT_PERSONA_CATEGORY]->Click();
} }
SelectPersonaDialog::~SelectPersonaDialog() SelectPersonaDialog::~SelectPersonaDialog()
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
#define CATEGORYCOUNT 6 // Number of persona categories #define CATEGORYCOUNT 6 // Number of persona categories
#define MAX_RESULTS 9 // Maximum number of search results #define MAX_RESULTS 9 // Maximum number of search results
#define MAX_DEFAULT_PERSONAS 3 // Maximum number of default personas #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 FixedText;
class FixedHyperlink; class FixedHyperlink;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment