diff options
author | Jan-Marek Glogowski <jan-marek.glogowski@extern.cib.de> | 2019-10-01 14:06:10 +0000 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2019-10-23 10:26:20 +0200 |
commit | aceab9cbf10486d2179d016b36511d907d402825 (patch) | |
tree | c1a3f4541a18fe57a39572aad86f9a71562115b6 | |
parent | 162629610dc07f0ed4e15aeed9bd4cad6bea79d1 (diff) |
tdf#127909 don't always select the first entry
Change-Id: Ic65667c748a62d989a4f38113155ba2715830629
Reviewed-on: https://gerrit.libreoffice.org/79977
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
-rw-r--r-- | cui/source/options/certpath.cxx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx index 95898629c7e8..dae67fb379e6 100644 --- a/cui/source/options/certpath.cxx +++ b/cui/source/options/certpath.cxx @@ -67,14 +67,9 @@ CertPathDialog::CertPathDialog(weld::Window* pParent) if (!profile.isEmpty()) { - m_xCertPathList->append(); - const int nRow = m_xCertPathList->n_children() - 1; - m_xCertPathList->set_toggle(nRow, TRISTATE_FALSE, 0); OUString sEntry = OUString::createFromAscii(productNames[i]) + ":" + profile; - m_xCertPathList->set_text(nRow, sEntry, 1); OUString sProfilePath = xMozillaBootstrap->getProfilePath( productTypes[i], profile ); - m_xCertPathList->set_text(nRow, sProfilePath, 2); - m_xCertPathList->set_id(nRow, sProfilePath); + AddCertPath(sEntry, sProfilePath); } } } @@ -114,12 +109,6 @@ CertPathDialog::CertPathDialog(weld::Window* pParent) const char* pEnv = getenv("MOZILLA_CERTIFICATE_FOLDER"); if (pEnv) AddCertPath("$MOZILLA_CERTIFICATE_FOLDER", OUString(pEnv, strlen(pEnv), osl_getThreadTextEncoding())); - - if (m_xCertPathList->n_children()) - { - m_xCertPathList->set_toggle(0, TRISTATE_TRUE, 0); - HandleEntryChecked(0); - } } IMPL_LINK_NOARG(CertPathDialog, OKHdl_Impl, weld::Button&, void) |