DkImageContainerT::~DkImageContainerT() { mBufferWatcher.blockSignals(true); mBufferWatcher.cancel(); mImageWatcher.blockSignals(true); mImageWatcher.cancel(); saveMetaData(); // we have to wait here mSaveMetaDataWatcher.blockSignals(true); mSaveImageWatcher.blockSignals(true); }
DkImageContainerT::~DkImageContainerT() { bufferWatcher.blockSignals(true); bufferWatcher.cancel(); imageWatcher.blockSignals(true); imageWatcher.cancel(); saveMetaData(); // we have to wait here saveMetaDataWatcher.blockSignals(true); saveImageWatcher.blockSignals(true); //saveImageWatcher.waitForFinished(); //saveMetaDataWatcher.waitForFinished(); }