summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2018-10-10 13:55:59 +0300
committerMuhammet Kara <muhammet.kara@pardus.org.tr>2018-10-10 14:33:39 +0200
commit0d4abd0a5ae687e0503fd4185406fc02079951fd (patch)
tree7234730709ef5e2ad074ea1c9ca9bc434770a956 /cui
parentFix failure of loplugin:useuniqueptr with older compilers (diff)
downloadcore-0d4abd0a5ae687e0503fd4185406fc02079951fd.tar.gz
core-0d4abd0a5ae687e0503fd4185406fc02079951fd.zip
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.cxx2
-rw-r--r--cui/source/options/personalization.hxx6
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;