Пример #1
0
DkImageContainerT::~DkImageContainerT() {
	
	mBufferWatcher.blockSignals(true);
	mBufferWatcher.cancel();
	mImageWatcher.blockSignals(true);
	mImageWatcher.cancel();

	saveMetaData();

	// we have to wait here
	mSaveMetaDataWatcher.blockSignals(true);
	mSaveImageWatcher.blockSignals(true);
}
Пример #2
0
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();
}