Commit e0f2cb98 authored by Denis Khachko's avatar Denis Khachko

Robot repaint btn

parent 93352a0a
......@@ -4166,10 +4166,10 @@ void RobotModule::editEnv()
return;
}
startField->setModeFlag(NEDIT_MODE);
view->repaint();
view->showButtons(true);
view->repaint();
reset();
field->setMode(NEDIT_MODE);
startField->setModeFlag(NORMAL_MODE);
......@@ -4324,6 +4324,7 @@ void RobotModule::loadEnv()
NewWindow->close();
if(!field->isEditMode())editEnv();
view->update();
};
void RobotModule::newEnv()
{
......
......@@ -580,7 +580,7 @@ if(ioDir.isFile())
qDebug()<<"Fields!!!!"<<task.fields;
}
qDebug()<<"MODULES:"<<course->Modules(curTaskIdx.internalId());
if(!interface->startNewTask(course->Modules(curTaskIdx.internalId()),&task))QMessageBox::about(NULL, trUtf8("Невозможно выполнить задание"),trUtf8("Нет неоходимых исполнителей"));
if(!interface->startNewTask(course->Modules(curTaskIdx.internalId()),&task))QMessageBox::about(NULL, trUtf8("Невозможно выполнить задание"),trUtf8("Нет необходимых исполнителей"));
if(course->getUserText(curTaskIdx.internalId())!="")
{
interface->setPreProgram(QVariant(course->getUserText(curTaskIdx.internalId())));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment