mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Minor
Block database signal when a project is currently being deleted. Among other things, this avoid the multiple show of the dialog "table limitation".
This commit is contained in:
parent
ea46a92f3f
commit
b42aec7bdf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user