mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-01 11:40:02 +03:00
Check connection has been fixed
This commit is contained in:
@@ -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())
|
||||||
|
Reference in New Issue
Block a user