From 7652241d2d7b03b51fb4b4a8f34798955744567b Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de>
Date: Thu, 22 Apr 2021 22:02:53 +0200
Subject: [PATCH] expand auto

---
 GUI/coregui/Views/ImportDataWidgets/RealDataSelectorWidget.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/GUI/coregui/Views/ImportDataWidgets/RealDataSelectorWidget.cpp b/GUI/coregui/Views/ImportDataWidgets/RealDataSelectorWidget.cpp
index 44164eb00c0..35740dab40d 100644
--- a/GUI/coregui/Views/ImportDataWidgets/RealDataSelectorWidget.cpp
+++ b/GUI/coregui/Views/ImportDataWidgets/RealDataSelectorWidget.cpp
@@ -230,7 +230,7 @@ void RealDataSelectorWidget::importData1D()
 
     const AbstractDataLoader* selectedLoader = loaderOfFilter.value(selectedFilter, nullptr);
     for (const auto& fileName : fileNames) {
-        auto realDataItem = m_itemTreeModel->insertSpecularDataItem();
+        RealDataItem* realDataItem = m_itemTreeModel->insertSpecularDataItem();
         realDataItem->setName(QFileInfo(fileName).baseName());
         realDataItem->setNativeFileName(fileName);
 
@@ -239,7 +239,6 @@ void RealDataSelectorWidget::importData1D()
             setCurrentItem(realDataItem);
         else {
             m_itemTreeModel->removeItem(realDataItem);
-
             GUIHelpers::warning("File import",
                                 QString("The file '%1' could not be imported.")
                                     .arg(QDir::toNativeSeparators(fileName)),
-- 
GitLab