Tag: cws_src680_mozab05 User: windly Date: 05/01/28 00:21:06 Modified: /dba/dbaccess/source/ui/dlg/ dsselect.cxx
Log: #i41504# select the used obdc data source File Changes: Directory: /dba/dbaccess/source/ui/dlg/ ======================================= File [changed]: dsselect.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/dlg/dsselect.cxx?r1=1.11&r2=1.11.10.1 Delta lines: +13 -6 -------------------- --- dsselect.cxx 5 Jan 2005 12:35:17 -0000 1.11 +++ dsselect.cxx 28 Jan 2005 08:21:02 -0000 1.11.10.1 @@ -2,9 +2,9 @@ * * $RCSfile: dsselect.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.11.10.1 $ * - * last change: $Author: obo $ $Date: 2005/01/05 12:35:17 $ + * last change: $Author: windly $ $Date: 2005/01/28 08:21:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -300,6 +300,9 @@ // ----------------------------------------------------------------------------- void ODatasourceSelectDialog::fillListBox(const StringBag& _rDatasources) { + ::rtl::OUString sSelected; + if (m_aDatasource.GetEntryCount()) + sSelected = m_aDatasource.GetSelectEntry(); m_aDatasource.Clear(); // fill the list for ( ConstStringBagIterator aDS = _rDatasources.begin(); @@ -310,9 +313,13 @@ m_aDatasource.InsertEntry( *aDS ); } - // select the first entry if (m_aDatasource.GetEntryCount()) + { + if (sSelected.getLength()) + m_aDatasource.SelectEntry(sSelected); + else // select the first entry m_aDatasource.SelectEntryPos(0); + } } //......................................................................... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
