// End
if (result == "")
{
- if (object->_observer)
- object->_observer->sendEvent("start_job", "Ok", job_name, "");
job->setState(BL::Job::QUEUED);
job->setThreadState(BL::Job::NOTHING);
+ if (object->_observer)
+ object->_observer->sendEvent("start_job", "Ok", job_name, "");
}
else
{
- if (object->_observer)
- object->_observer->sendEvent("start_job", "Error", job_name, result);
job->setState(BL::Job::ERROR);
job->setThreadState(BL::Job::NOTHING);
+ if (object->_observer)
+ object->_observer->sendEvent("start_job", "Error", job_name, result);
}
object->_thread_mutex.unlock();
}
label->setWordWrap(true);
QPushButton * yacs_file_button = new QPushButton(tr("Choose YACS Schema file"));
- yacs_file_button->show();
connect(yacs_file_button, SIGNAL(clicked()), this, SLOT(choose_file()));
_yacs_file_text = new QLineEdit(this);
_yacs_file_text->setReadOnly(true);
QPushButton * command_env_file_button = new QPushButton(tr("Choose an environnement file"));
- command_env_file_button->show();
connect(command_env_file_button, SIGNAL(clicked()), this, SLOT(choose_env_file()));
_line_env_file = new QLineEdit(this);
registerField("env_yacs_file", _line_env_file);
// command
QPushButton * command_file_button = new QPushButton(tr("Choose a command file"));
- command_file_button->show();
connect(command_file_button, SIGNAL(clicked()), this, SLOT(choose_command_file()));
_line_command = new QLineEdit(this);
registerField("command", _line_command);
_line_command->setReadOnly(true);
QPushButton * command_env_file_button = new QPushButton(tr("Choose an environnement file"));
- command_env_file_button->show();
connect(command_env_file_button, SIGNAL(clicked()), this, SLOT(choose_env_file()));
_line_env_file = new QLineEdit(this);
registerField("env_command_file", _line_env_file);
// PythonSalome
QPushButton * PythonSalome_file_button = new QPushButton(tr("Choose a Python file"));
- PythonSalome_file_button->show();
connect(PythonSalome_file_button, SIGNAL(clicked()), this, SLOT(choose_PythonSalome_file()));
_line_PythonSalome = new QLineEdit(this);
registerField("PythonSalome", _line_PythonSalome);
_line_PythonSalome->setReadOnly(true);
QPushButton * PythonSalome_env_file_button = new QPushButton(tr("Choose an environnement file"));
- PythonSalome_env_file_button->show();
connect(PythonSalome_env_file_button, SIGNAL(clicked()), this, SLOT(choose_env_file()));
_line_env_file = new QLineEdit(this);
registerField("env_PythonSalome_file", _line_env_file);