-// Copyright (C) 2006-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2023 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
_selectedSubject = 0;
_isEdition = true;
_isLoadingPresentation = false;
- _studyId = 0;
_fileName = QString();
_mapOfSchemaItem.clear();
_mapOfSceneItem.clear();
_current = 0;
_QtCurrent = 0;
_setOfContext.erase(this);
+ // Avoid any possible copy from the destroyed schema.
+ QClipboard *clipboard = QApplication::clipboard();
+ clipboard->setMimeData(NULL);
}
void QtGuiContext::setProc(YACS::ENGINE::Proc* proc)