- fix: when make project and del non-existing files, shouldn't show error messages

This commit is contained in:
royqh1979@gmail.com 2021-11-22 16:40:50 +08:00
parent 6ba2d47c81
commit a14257971c
5 changed files with 8 additions and 17 deletions

View File

@ -5,6 +5,8 @@ Version 0.9.2 For Dev-C++ 7 Beta
- fix: option "Move caret to the first non-space char in the current line when press HOME key" dosen't work fine.
- fix: ctrl+left can't correctly move to the beginning of the last word
- enhancement: add "delete line"/"duplicate line"/"delete word"/"delete to EOL"/"delete to BOL" in the edit menu
- fix: crash when run "Project" / "Clean Make files"
- fix: when make project and del non-existing files, shouldn't show error messages
Version 0.9.1 For Dev-C++ 7 Beta
- enhancement: code completion suggestion for "__func__" variable

View File

@ -133,8 +133,8 @@ void CompilerManager::cleanProject(std::shared_ptr<Project> project)
mCompileIssueCount = 0;
ProjectCompiler* compiler = new ProjectCompiler(project,false,false);
compiler->setOnlyClean(true);
mCompiler->setRebuild(false);
mCompiler = compiler;
mCompiler->setRebuild(false);
connect(mCompiler, &Compiler::finished, mCompiler, &QObject::deleteLater);
connect(mCompiler, &Compiler::compileFinished, this, &CompilerManager::onCompileFinished);

View File

@ -9,7 +9,8 @@
#include <QDir>
ProjectCompiler::ProjectCompiler(std::shared_ptr<Project> project, bool silent, bool onlyCheckSyntax):
Compiler("",silent,onlyCheckSyntax)
Compiler("",silent,onlyCheckSyntax),
mOnlyClean(false)
{
setProject(project);
}
@ -264,9 +265,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)");
writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) $(DEF) $(STATIC) > NUL 2>&1 ");
else
writeln(file, "\t${RM} $(CLEANOBJ) $(BIN)");
writeln(file, "\t${RM} $(CLEANOBJ) $(BIN) > NUL 2>&1 ");
writeln(file);
}
@ -465,7 +466,7 @@ bool ProjectCompiler::prepareForCompile()
mArguments = QString("-f \"%1\" clean").arg(extractRelativePath(
mProject->directory(),
mProject->makeFileName()));
} if (mRebuild) {
} else if (mRebuild) {
mArguments = QString("-f \"%1\" clean all").arg(extractRelativePath(
mProject->directory(),
mProject->makeFileName()));

View File

@ -5695,16 +5695,6 @@ void MainWindow::on_actionProblem_triggered()
showHideMessagesTab(ui->tabProblem,state);
}
void MainWindow::on_actionInsert_Line_triggered()
{
Editor *e=mEditorList->getEditor();
if (e) {
e->insertLine();
}
}
void MainWindow::on_actionDelete_Line_triggered()
{
Editor *e=mEditorList->getEditor();

View File

@ -518,8 +518,6 @@ private slots:
void on_actionProblem_triggered();
void on_actionInsert_Line_triggered();
void on_actionDelete_Line_triggered();
void on_actionDuplicate_Line_triggered();