diff --git a/NEWS.md b/NEWS.md index 124b8f39..8515fba9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -15,6 +15,7 @@ Red Panda C++ Version 1.0.2 - enhancement: only tag the first inconstantency when running problem case, to greatly reduce compare & display time - fix: can't stop a freeze program that has stdin redirected. - enhancement: context menu for problem cases table + - fix: error in auto generate makefile under linux Red Panda C++ Version 1.0.1 - fix: only convert project icon file when it's filename doesn't end with ".ico" diff --git a/RedPandaIDE/compiler/projectcompiler.cpp b/RedPandaIDE/compiler/projectcompiler.cpp index 26ce0db9..d277d312 100644 --- a/RedPandaIDE/compiler/projectcompiler.cpp +++ b/RedPandaIDE/compiler/projectcompiler.cpp @@ -284,9 +284,9 @@ void ProjectCompiler::writeMakeClean(QFile &file) { writeln(file, "clean: clean-custom"); if (mProject->options().type == ProjectType::DynamicLib) - writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) $(DEF) $(STATIC) > NUL 2>&1"); + writeln(file, QString("\t${RM} $(CLEANOBJ) $(BIN) $(DEF) $(STATIC) > %1 2>&1").arg(NULL_FILE)); else - writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) > NUL 2>&1"); + writeln(file, QString("\t${RM} $(CLEANOBJ) $(BIN) > %1 2>&1").arg(NULL_FILE)); writeln(file); } diff --git a/RedPandaIDE/mainwindow.h b/RedPandaIDE/mainwindow.h index fe75e0af..ad2906c4 100644 --- a/RedPandaIDE/mainwindow.h +++ b/RedPandaIDE/mainwindow.h @@ -282,7 +282,7 @@ private slots: void onProblemSetIndexChanged(const QModelIndex ¤t, const QModelIndex &previous); void onProblemCaseIndexChanged(const QModelIndex ¤t, const QModelIndex &previous); void onProblemNameChanged(int index); - void onRroblemRunCurrentCase(); + void onProblemRunCurrentCase(); void onNewProblemConnection(); void updateProblemTitle(); void onEditorClosed(); diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index a03f7ade..ff22deb8 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -698,6 +698,7 @@ void Project::setCompilerSet(int compilerSetIndex) if (mOptions.compilerSet != compilerSetIndex) { mOptions.compilerSet = compilerSetIndex; updateCompilerSetType(); + setModified(true); } }