summaryrefslogtreecommitdiff
path: root/cui/source/options
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-12 15:26:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-12 20:41:17 +0100
commit208ecfa8171bb24fa5d2d1c0a53cab7ed29a03f1 (patch)
tree8b85f5b8bea30a640dd6ebd27edb056e82e21d11 /cui/source/options
parentda195d75a951265234c764aff7784f0bb888ccc9 (diff)
select first entry initially
Change-Id: Ib4591197b17811a37b3a33f943fff03f1efd9550 Reviewed-on: https://gerrit.libreoffice.org/69114 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/options')
-rw-r--r--cui/source/options/optlingu.cxx13
1 files changed, 13 insertions, 0 deletions
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(),