std::istringstream job_number_stream(data);
if (job_number_stream >> job_number)
{
+ DEBTRACE("Receive NEWJOB:" << job_number);
BL::JobsManager::thread_info_new_job * ti = new thread_info_new_job();
ti->object_ptr = this;
ti->job_number = job_number;
public:
BL::JobTab * _job_tab;
+ BL::JobsTable * _jobs_table;
protected:
BL::MainWindows_Wrap * _wrapper;
QDockWidget * _dw_resource_catalog;
BL::Buttons * _buttons;
- BL::JobsTable * _jobs_table;
BL::Summary * _summary;
QAction * _create_job_action;
// End
addJobToLauncher(wizard.job_name);
emit new_job_added(QString::fromStdString(wizard.job_name));
+ QStandardItemModel * model = _model_manager->getModel();
+ QList<QStandardItem *> item_list = model->findItems(QString::fromStdString(wizard.job_name));
+ QStandardItem * job_state_item = model->item(item_list.at(0)->row(), 2);
+ _main_gui->_jobs_table->selectRow(item_list.at(0)->row());
if (wizard.start_job)
start_job(wizard.job_name);
}
void
BL::QModelManager::new_job_added(const QString & name)
{
+ DEBTRACE("Adding new job in the model manager");
BL::Job * job = _jobs_manager->getJob(name.toStdString());
QStandardItem * new_job_name = new QStandardItem(name);