#80754# find alternative data source
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
*
|
||||
* $RCSfile: bibload.cxx,v $
|
||||
*
|
||||
* $Revision: 1.6 $
|
||||
* $Revision: 1.7 $
|
||||
*
|
||||
* last change: $Author: os $ $Date: 2000-11-15 15:54:56 $
|
||||
* last change: $Author: os $ $Date: 2000-11-27 14:19:19 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
@@ -412,6 +412,14 @@ void BibliographyLoader::loadView(const Reference< frame::XFrame > & rFrame, con
|
||||
m_xDatMan = m_pDatMan;
|
||||
BibDBDescriptor aBibDesc = BibModul::GetConfig()->GetBibliographyURL();
|
||||
|
||||
if(!aBibDesc.sDataSource.getLength());
|
||||
{
|
||||
DBChangeDialogConfig_Impl aConfig;
|
||||
const Sequence<OUString> aSources = aConfig.GetDataSourceNames();
|
||||
if(aSources.getLength())
|
||||
aBibDesc.sDataSource = aSources.getConstArray()[0];
|
||||
}
|
||||
|
||||
Reference< form::XForm > xForm = pDatMan->createDatabaseForm(aBibDesc);
|
||||
|
||||
if(xForm.is())
|
||||
|
Reference in New Issue
Block a user