- change: Remove all breakpoints of the current non-project file, when it is closed.

This commit is contained in:
Roy Qu 2023-02-21 15:43:45 +08:00
parent 457e84f86a
commit 3ede3e4ce6
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Red Panda C++ Version 2.13
- change: Remove all breakpoints of the current non-project file, when it is closed.
Red Panda C++ Version 2.13 Red Panda C++ Version 2.13
- fix: Only C/C++/GAS files can set breakpoints. - fix: Only C/C++/GAS files can set breakpoints.

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
} }
isEmpty(APP_VERSION) { isEmpty(APP_VERSION) {
APP_VERSION = 2.13 APP_VERSION = 2.14
} }
macos: { macos: {

View File

@ -180,9 +180,10 @@ bool EditorList::closeEditor(Editor* editor, bool transferFocus, bool force) {
PProjectUnit unit = pMainWindow->project()->findUnit(editor); PProjectUnit unit = pMainWindow->project()->findUnit(editor);
pMainWindow->project()->closeUnit(unit); pMainWindow->project()->closeUnit(unit);
} else { } else {
if (pMainWindow->visitHistoryManager()->addFile(editor->filename())) { if (!editor->isNew() && pMainWindow->visitHistoryManager()->addFile(editor->filename())) {
pMainWindow->rebuildOpenedFileHisotryMenu(); pMainWindow->rebuildOpenedFileHisotryMenu();
} }
editor->clearBreakpoints();
doRemoveEditor(editor); doRemoveEditor(editor);
} }
updateLayout(); updateLayout();

View File

@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP
APP_VERSION = 2.13 APP_VERSION = 2.14
# Add the dependencies so that the RedPandaIDE project can add the depended programs # Add the dependencies so that the RedPandaIDE project can add the depended programs
# into the main app bundle # into the main app bundle