- fix: can't add bookmark at a breakpoint line

This commit is contained in:
royqh1979@gmail.com 2021-10-22 16:56:27 +08:00
parent 24c2262c95
commit 87ef9c216c
2 changed files with 5 additions and 2 deletions

View File

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

View File

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