User: vg Date: 05/02/21 04:44:35 Modified: /dba/dbaccess/source/ui/dlg/ dsselect.cxx
Log: INTEGRATION: CWS mozab05 (1.11.10); FILE MERGED 2005/01/28 08:21:02 windly 1.11.10.1: #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.12 Delta lines: +10 -3 -------------------- --- dsselect.cxx 5 Jan 2005 12:35:17 -0000 1.11 +++ dsselect.cxx 21 Feb 2005 12:44:32 -0000 1.12 @@ -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]
