diff --git a/NEWS.md b/NEWS.md index c7971a1f..046fc0d9 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +Red Panda C++ Version 2.8 + + - fix: Crash when editing makefile + Red Panda C++ Version 2.7 - enhancement: Remove multiple problems in the problem set view diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 479eae73..eb6f59b4 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -10,7 +10,7 @@ isEmpty(APP_NAME) { } isEmpty(APP_VERSION) { - APP_VERSION = 2.7 + APP_VERSION = 2.8 } macos: { diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index f65d5ee6..a3f76ca8 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -798,7 +798,7 @@ void Editor::keyPressEvent(QKeyEvent *event) } } lastWord = getPreviousWordAtPositionForCompleteFunctionDefinition(caretXY()); - if (!lastWord.isEmpty()) { + if (mParser && !lastWord.isEmpty()) { PStatement currentScope = mParser->findScopeStatement(mFilename,caretY()); while(currentScope && currentScope->kind==StatementKind::skBlock) { currentScope = currentScope->parentScope.lock(); diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index 9808384d..18cb9b6e 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -33,7 +33,7 @@ RedPandaIDE.depends += redpanda-git-askpass APP_NAME = RedPandaCPP -APP_VERSION = 2.7 +APP_VERSION = 2.8 linux: { isEmpty(PREFIX) {