0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-03-28 21:23:43 +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
common.pri
limereport/databrowser

View File

@ -127,7 +127,7 @@ RCC_DIR = $${ARCH_DIR}/$${BUILD_TYPE}/rcc
LIMEREPORT_VERSION_MAJOR = 1
LIMEREPORT_VERSION_MINOR = 5
LIMEREPORT_VERSION_RELEASE = 25
LIMEREPORT_VERSION_RELEASE = 26
LIMEREPORT_VERSION = '$${LIMEREPORT_VERSION_MAJOR}.$${LIMEREPORT_VERSION_MINOR}.$${LIMEREPORT_VERSION_RELEASE}'
DEFINES *= LIMEREPORT_VERSION_STR=\\\"$${LIMEREPORT_VERSION}\\\"

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)