- fix: when debug a project, and have breakpoints that not in opened editors, dev-cpp will crash

This commit is contained in:
royqh1979@gmail.com 2021-10-27 12:05:46 +08:00
parent 205860b81f
commit 33099f4044
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;
}
}

View File

@ -36,6 +36,7 @@ UseUTF8 = 0
StaticLink = 1
AddCharset = 1
Encoding = AUTO
CompilerSetType = 0
[VersionInfo]