Commit 585bd68a authored by Denis Khachko's avatar Denis Khachko

Set empty program, when source changed.

parent 614e4a6f
...@@ -255,6 +255,7 @@ for(int i=0;i<prgElListT.count();i++) ...@@ -255,6 +255,7 @@ for(int i=0;i<prgElListT.count();i++)
setWindowTitle(course->name()+trUtf8(" - Практикум")); setWindowTitle(course->name()+trUtf8(" - Практикум"));
updateLastFiles(fileName); updateLastFiles(fileName);
interface->lockContrls(); interface->lockContrls();
interface->setPreProgram(QVariant(""));
ui->checkTask->setEnabled(false); ui->checkTask->setEnabled(false);
this->show(); this->show();
}; };
...@@ -294,6 +295,7 @@ void MainWindowTask::loadCourse() ...@@ -294,6 +295,7 @@ void MainWindowTask::loadCourse()
}else }else
cursWorkFile.setFileName(""); cursWorkFile.setFileName("");
loadCourseData(fileName); loadCourseData(fileName);
interface->setPreProgram(QVariant(""));
QString cText=course->courceDescr(); QString cText=course->courceDescr();
......
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