-// Copyright (C) 2009-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019 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
{
if (_gengui)
{
+ _gengui->saveIfNeeded();
_gengui->deleteDockWidget();
delete _gengui;
_gengui = NULL;