Tag: cws_src680_dba24 User: oj Date: 05/01/31 22:26:53 Modified: /dba/dbaccess/source/ui/dlg/ dsselect.cxx
Log: #119241# use SelectEntryPos to select new inserted entry 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.20.1 Delta lines: +4 -1 ------------------- --- dsselect.cxx 5 Jan 2005 12:35:17 -0000 1.11 +++ dsselect.cxx 1 Feb 2005 06:26:51 -0000 1.11.20.1 @@ -247,7 +247,7 @@ { String sDatabaseName; sDatabaseName = String(::comphelper::getString(xProp->getPropertyValue(PROPERTY_DATABASENAME))); - m_aDatasource.SelectEntry(m_aDatasource.InsertEntry( sDatabaseName )); + m_aDatasource.SelectEntryPos(m_aDatasource.InsertEntry( sDatabaseName )); } if ( xPropInfo->hasPropertyByName(PROPERTY_CONTROLUSER) ) @@ -257,7 +257,10 @@ if ( xPropInfo->hasPropertyByName(PROPERTY_USER) ) m_pOutputSet->Put(SfxStringItem(DSID_USER, ::comphelper::getString(xProp->getPropertyValue(PROPERTY_USER)))); if ( xPropInfo->hasPropertyByName(PROPERTY_PASSWORD) ) + { m_pOutputSet->Put(SfxStringItem(DSID_PASSWORD, ::comphelper::getString(xProp->getPropertyValue(PROPERTY_PASSWORD)))); + m_pOutputSet->Put(SfxBoolItem(DSID_PASSWORDREQUIRED, TRUE)); + } if ( xPropInfo->hasPropertyByName(PROPERTY_CACHESIZE) ) m_pOutputSet->Put(SfxInt32Item(DSID_CONN_CACHESIZE, ::comphelper::getINT32(xProp->getPropertyValue(PROPERTY_CACHESIZE)))); } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
