-// Copyright (C) 2006-2014 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
//#define _DEVDEBUG_
#include "YacsTrace.hxx"
+#include "chrono.hxx"
using namespace std;
using namespace YACS::ENGINE;
_stackedWidget = 0;
_guiExecutor = 0;
_selectedSubject = 0;
- _subjectToCut = 0;
- _subjectToCopy = 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)