static void launcher_event_remove_job_thread(void * object_ptr);
void launcher_event_update_job_state(const std::string & data);
+ bool emptyJobsList() {return _jobs.empty();}
+
struct thread_info
{
BL::JobsManager * object_ptr;
#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