From 1606d7c98efc67e3fd8ae76bd2962b028f6aacf9 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Mon, 22 Jan 2024 17:33:45 +0100 Subject: [PATCH] rm onDestroyed handling --- GUI/View/Access/DataAccessWidget.cpp | 3 --- GUI/View/Access/DataAccessWidget.h | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/GUI/View/Access/DataAccessWidget.cpp b/GUI/View/Access/DataAccessWidget.cpp index 008a56d4ae2..493c1f70dfe 100644 --- a/GUI/View/Access/DataAccessWidget.cpp +++ b/GUI/View/Access/DataAccessWidget.cpp @@ -28,9 +28,6 @@ void DataAccessWidget::setBaseItem(QObject* item) { m_item = item; ASSERT(jobxItem() || realDataItem()); - - disconnect(m_item, &QObject::destroyed, this, nullptr); - connect(m_item, &QObject::destroyed, [this] { m_item = nullptr; }); } JobItem* DataAccessWidget::jobxItem() const diff --git a/GUI/View/Access/DataAccessWidget.h b/GUI/View/Access/DataAccessWidget.h index f9d4d5bfa51..807dc4eb8e0 100644 --- a/GUI/View/Access/DataAccessWidget.h +++ b/GUI/View/Access/DataAccessWidget.h @@ -27,8 +27,7 @@ class JobItem; //! separately and as a list of items that is required for simultaneous, synchronous work while //! plotting and changing their properties. -class DataAccessWidget : public QObject { - Q_OBJECT +class DataAccessWidget { public: explicit DataAccessWidget(); -- GitLab