Skip to content

Commit

Permalink
fix(compile): fix Python Compile & Run, fix #126
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan authored and coder3101 committed Jan 28, 2020
1 parent 184fb8e commit 4c7e61f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mainwindow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,16 @@ void MainWindow::compile()
command = data.compileCommandCpp;
else if (language == "Java")
command = data.compileCommandJava;
else if (language == "Python")
{
onCompilationFinished("");
return;
}
else
{
log.warn("Compiler", "Please set the language");
return;
}
connect(compiler, SIGNAL(compilationStarted()), this, SLOT(onCompilationStarted()));
connect(compiler, SIGNAL(compilationFinished(const QString &)), this,
SLOT(onCompilationFinished(const QString &)));
Expand Down

0 comments on commit 4c7e61f

Please sign in to comment.