[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Wed Oct 10 12:34:04 UTC 2018
cui/source/options/personalization.cxx | 2 ++
cui/source/options/personalization.hxx | 6 ++++++
2 files changed, 8 insertions(+)
New commits:
commit 0d4abd0a5ae687e0503fd4185406fc02079951fd
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
AuthorDate: Wed Oct 10 13:55:59 2018 +0300
Commit: Muhammet Kara <muhammet.kara at pardus.org.tr>
CommitDate: Wed Oct 10 14:33:39 2018 +0200
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 at pardus.org.tr>
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;
More information about the Libreoffice-commits
mailing list