From 87ef9c216c800224f41ddca11570f4f150d2f411 Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Fri, 22 Oct 2021 16:56:27 +0800 Subject: [PATCH] - fix: can't add bookmark at a breakpoint line --- NEWS.md | 3 +++ RedPandaIDE/mainwindow.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index d40958e5..2099df45 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +Version 0.7.1 + - fix: can't add bookmark at a breakpoint line + Version 0.7.0 - fix: Backspace still works in readonly mode - fix: save as file dialog's operation mode is not correct diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 1ae39051..866e23a7 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -2557,8 +2557,8 @@ void MainWindow::onEditorContextMenu(const QPoint &pos) line>=0 && editor->lines()->count()>0 && !editor->hasBreakpoint(line) ); - ui->actionRemove_Bookmark->setEnabled(editor->hasBreakpoint(line)); - ui->actionModify_Bookmark_Description->setEnabled(editor->hasBreakpoint(line)); + ui->actionRemove_Bookmark->setEnabled(editor->hasBookmark(line)); + ui->actionModify_Bookmark_Description->setEnabled(editor->hasBookmark(line)); menu.exec(editor->viewport()->mapToGlobal(pos)); }