From b42aec7bdfec193ed6d4cd8efea6514579d2d61e Mon Sep 17 00:00:00 2001 From: joshua Date: Sat, 9 Apr 2022 12:46:07 +0200 Subject: [PATCH] Minor Block database signal when a project is currently being deleted. Among other things, this avoid the multiple show of the dialog "table limitation". --- sources/qetproject.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 8e36ac100..269d946d4 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -122,6 +122,10 @@ QETProject::QETProject(KAutoSaveFile *backup, QObject *parent) : */ QETProject::~QETProject() { + //We block database signal to avoid hundreds of unnecessary emitted signal + //due to deletion (diagram, item, etc...) and as much update made in the not yet deleted things. + m_data_base.blockSignals(true); + //Each time a diagram is deleted we also remove it from m_diagram_list //because a lot of thing append during the destructor of a diagram class //and one of these thing (not directly in the destructor of the diagram