[Libreoffice-commits] core.git: dbaccess/source

Julien Nabet serval2412 at yahoo.fr
Wed Dec 2 12:48:27 PST 2015


 dbaccess/source/ui/misc/WTypeSelect.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 103cd686de34b668a838c459f3d827c02e704656
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Dec 2 21:14:00 2015 +0100

    tdf#96012: Type formatting in Base shouldn't be multiselect
    
    Disable multiselect and don't manually select the entry
    
    Change-Id: Id04e757e4d2031718f95af1d0f512b4ca2df205c
    Reviewed-on: https://gerrit.libreoffice.org/20360
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx
index ba9e35e..5ff28dc 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(true);
+    m_pColumnNames->EnableMultiSelection(false);
 
     try
     {
@@ -288,8 +288,6 @@ 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()


More information about the Libreoffice-commits mailing list