diff --git a/NEWS.md b/NEWS.md index a9941513..a3f030c7 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Version 0.7.4 + - fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash + Version 0.7.3 - enhancement: icons in project view - fix: sometimes option widget will show confirm dialog even not changed diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 1de0b8f2..982fc43f 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -3501,7 +3501,7 @@ bool MainWindow::debugInferiorhasBreakpoint() } else { for (const PBreakpoint& breakpoint:mDebugger->breakpointModel()->breakpoints()) { Editor* e1 = mEditorList->getOpenedEditorByFilename(breakpoint->filename); - if (e1->inProject()) { + if (e1 && e1->inProject()) { return true; } } diff --git a/tools/ConsolePauser/ConsolePauser.dev b/tools/ConsolePauser/ConsolePauser.dev index 708a05a0..6a50e0e5 100644 --- a/tools/ConsolePauser/ConsolePauser.dev +++ b/tools/ConsolePauser/ConsolePauser.dev @@ -36,6 +36,7 @@ UseUTF8 = 0 StaticLink = 1 AddCharset = 1 Encoding = AUTO +CompilerSetType = 0 [VersionInfo]