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