[Libreoffice-commits] core.git: cui/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Mar 12 19:41:44 UTC 2019
cui/source/options/optlingu.cxx | 13 +++++++++++++
1 file changed, 13 insertions(+)
New commits:
commit 208ecfa8171bb24fa5d2d1c0a53cab7ed29a03f1
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Mar 12 15:26:06 2019 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Mar 12 20:41:17 2019 +0100
select first entry initially
Change-Id: Ib4591197b17811a37b3a33f943fff03f1efd9550
Reviewed-on: https://gerrit.libreoffice.org/69114
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index a35c8cd2dd81..ce46b3c4f1d7 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -1192,6 +1192,11 @@ void SvxLinguTabPage::UpdateDicBox_Impl()
}
m_xLinguDicsCLB->thaw();
+ if (m_xLinguDicsCLB->n_children())
+ {
+ m_xLinguDicsCLB->select(0);
+ SelectHdl_Impl(*m_xLinguDicsCLB);
+ }
}
void SvxLinguTabPage::UpdateModulesBox_Impl()
@@ -1211,6 +1216,11 @@ void SvxLinguTabPage::UpdateModulesBox_Impl()
m_xLinguModulesCLB->set_toggle(i, rInfo.bConfigured, 0);
m_xLinguModulesCLB->set_text(i, rInfo.sDisplayName, 1);
}
+ if (nDispSrvcCount)
+ {
+ m_xLinguModulesCLB->select(0);
+ SelectHdl_Impl(*m_xLinguModulesCLB);
+ }
m_xLinguModulesEditPB->set_sensitive( nDispSrvcCount > 0 );
}
}
@@ -1340,6 +1350,9 @@ void SvxLinguTabPage::Reset( const SfxItemSet* rSet )
m_xLinguOptionsCLB->thaw();
+ m_xLinguOptionsCLB->select(0);
+ SelectHdl_Impl(*m_xLinguOptionsCLB);
+
m_xLinguModulesCLB->set_size_request(m_xLinguModulesCLB->get_preferred_size().Width(),
m_xLinguModulesCLB->get_height_rows(3));
m_xLinguDicsCLB->set_size_request(m_xLinguDicsCLB->get_preferred_size().Width(),
More information about the Libreoffice-commits
mailing list