mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Check connection has been fixed
This commit is contained in:
parent
28c8ae66e1
commit
3975406487
@ -667,8 +667,10 @@ void DataSourceManager::addConnectionDesc(ConnectionDesc * connection)
|
|||||||
bool DataSourceManager::checkConnectionDesc(ConnectionDesc *connection)
|
bool DataSourceManager::checkConnectionDesc(ConnectionDesc *connection)
|
||||||
{
|
{
|
||||||
if (connectConnection(connection)){
|
if (connectConnection(connection)){
|
||||||
if (connection->isInternal())
|
if (connection->isInternal()){
|
||||||
QSqlDatabase::removeDatabase(connection->name());
|
QSqlDatabase::removeDatabase(connection->name());
|
||||||
|
if (designTime()) emit datasourcesChanged();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (connection->isInternal())
|
if (connection->isInternal())
|
||||||
|
Loading…
Reference in New Issue
Block a user