diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-12-03 05:09:15 +0100 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2015-12-03 05:09:15 +0100 |
commit | de9d0e797903e7ecc19be2b05c7e89d5936ae02d (patch) | |
tree | 18e2cc5cd15afc53221c8856700a5e9f5ec72c53 /dbaccess/source/ui | |
parent | b2d479854a9182234a378166900240aee7e1c79b (diff) |
Revert "tdf#96012: Type formatting in Base shouldn't be multiselect"
This reverts commit 103cd686de34b668a838c459f3d827c02e704656.
Better fix for tdf#96012 in b2d479854a9182234a378166900240aee7e1c79b
("simple mode" for the multiselection)
Change-Id: Ia6d7e5132e3f1997906a03f67ea4d7d0cf54ce7a
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r-- | dbaccess/source/ui/misc/WTypeSelect.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx index 5ff28dc4b682..ba9e35ebb0b3 100644 --- a/dbaccess/source/ui/misc/WTypeSelect.cxx +++ b/dbaccess/source/ui/misc/WTypeSelect.cxx @@ -246,7 +246,7 @@ OWizTypeSelect::OWizTypeSelect( vcl::Window* pParent, SvStream* _pStream ) m_pAutoEt->SetText("10"); m_pAutoEt->SetDecimalDigits(0); m_pAutoPb->SetClickHdl(LINK(this,OWizTypeSelect,ButtonClickHdl)); - m_pColumnNames->EnableMultiSelection(false); + m_pColumnNames->EnableMultiSelection(true); try { @@ -288,6 +288,8 @@ IMPL_LINK_NOARG_TYPED( OWizTypeSelect, ColumnSelectHdl, ListBox&, void ) OFieldDescription* pField = static_cast<OFieldDescription*>(m_pColumnNames->GetEntryData(m_pColumnNames->GetEntryPos(aColumnName))); if(pField) m_pTypeControl->DisplayData(pField); + + m_pTypeControl->Enable(m_pColumnNames->GetSelectEntryCount() == 1 ); } void OWizTypeSelect::Reset() |