From 6a7180346c5c938bb7bb93eee827a387fe890315 Mon Sep 17 00:00:00 2001 From: Alexander Arin Date: Thu, 19 Dec 2019 23:40:32 +0300 Subject: [PATCH] Crash on selection "use default connection" has been fixed --- common.pri | 2 +- limereport/databrowser/lrdatabrowser.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common.pri b/common.pri index a37bc09..53f06b0 100644 --- a/common.pri +++ b/common.pri @@ -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}\\\" diff --git a/limereport/databrowser/lrdatabrowser.cpp b/limereport/databrowser/lrdatabrowser.cpp index 2deebd6..d475826 100644 --- a/limereport/databrowser/lrdatabrowser.cpp +++ b/limereport/databrowser/lrdatabrowser.cpp @@ -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)