work save
This commit is contained in:
parent
721f01f6cb
commit
959ac42226
|
@ -262,7 +262,13 @@ void MainWindow::updateEditorActions()
|
||||||
|
|
||||||
void MainWindow::updateCompileActions()
|
void MainWindow::updateCompileActions()
|
||||||
{
|
{
|
||||||
if (mCompilerManager->compiling() || mCompilerManager->running() || mDebugger->executing()) {
|
Editor * e = mEditorList->getEditor();
|
||||||
|
if (!e)
|
||||||
|
return;
|
||||||
|
FileType fileType = getFileType(e->filename());
|
||||||
|
if (mCompilerManager->compiling() || mCompilerManager->running() || mDebugger->executing()
|
||||||
|
|| (fileType!= FileType::CSource
|
||||||
|
&& fileType != FileType::CppSource) ) {
|
||||||
ui->actionCompile->setEnabled(false);
|
ui->actionCompile->setEnabled(false);
|
||||||
ui->actionCompile_Run->setEnabled(false);
|
ui->actionCompile_Run->setEnabled(false);
|
||||||
ui->actionRun->setEnabled(false);
|
ui->actionRun->setEnabled(false);
|
||||||
|
|
Loading…
Reference in New Issue