diff --git a/sources/qetproject.cpp b/sources/qetproject.cpp index 18429779d..8b5171a21 100644 --- a/sources/qetproject.cpp +++ b/sources/qetproject.cpp @@ -160,6 +160,11 @@ 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); + //Same reasoning for the rebuild itself : destroying a table relinks + //the tables that were chained to it, which re-queries the database, + //which rebuilds it completely -- for a project that is on its way out. + //Nothing can observe the result : the database is destroyed with it. + m_data_base.setUpdateBlocked(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