0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-09-23 08:29:07 +03:00

Crash on selection "use default connection" has been fixed

This commit is contained in:
Alexander Arin
2019-12-19 23:40:32 +03:00
parent b105ba186c
commit 6a7180346c
2 changed files with 3 additions and 2 deletions

View File

@@ -723,7 +723,8 @@ void DataBrowser::addDatasource(SQLEditResult result)
void DataBrowser::activateItem(const QString& name, DataBrowserTree::NodeType type){
QTreeWidgetItem* item = findByNameAndType(name, type);
item->treeWidget()->setCurrentItem(item);
if (item)
item->treeWidget()->setCurrentItem(item);
}
void DataBrowser::addConnectionDesc(ConnectionDesc *connection)