0
0
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:
Arin Alex 2017-02-21 22:16:09 +03:00
parent 28c8ae66e1
commit 3975406487

View File

@ -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())