Index: sources/main.h =================================================================== diff -u -r2bc6542cebc264eb343f791f75223a1ca151465e -r028cb1403e8fcb2d2e9ab2aa1562f660124015b1 --- sources/main.h (.../main.h) (revision 2bc6542cebc264eb343f791f75223a1ca151465e) +++ sources/main.h (.../main.h) (revision 028cb1403e8fcb2d2e9ab2aa1562f660124015b1) @@ -316,8 +316,12 @@ //--------------------------------------------------------------------------------// #define SAFE_CALL( vMETHOD) \ public : void vMETHOD() { \ + static bool init = false; \ + if ( ! init ) { \ connect(this, SIGNAL(did##vMETHOD()), \ this, SLOT( on##vMETHOD())); \ + init = true; \ + } \ emit did##vMETHOD();} \ Q_SIGNALS : void did##vMETHOD(); \ private Q_SLOTS : void on##vMETHOD();