-// Copyright (C) 2009-2016 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2020 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
#include <QSplitter>
#include <QStandardItemModel>
#include <QVBoxLayout>
+#include <QMessageBox>
#ifdef WNT
#undef ERROR
DEBTRACE("ERROR in updateButtonsStates !!!!!!");
}
}
+
+void
+BL::GenericGui::saveIfNeeded()
+{
+ if(!_jobs_manager->emptyJobsList())
+ {
+ if(QMessageBox::question (0,
+ tr("List of jobs in JOBMANAGER."),
+ tr("Do you want to save the list of jobs?"),
+ QMessageBox::Yes | QMessageBox::No,
+ QMessageBox::No) == QMessageBox::Yes)
+ _jobs_manager->save_jobs_button();
+ }
+}
\ No newline at end of file