fix: can't toggle bookmark when mouse is at end of the line
This commit is contained in:
parent
e6b57b79c0
commit
29e5541477
|
@ -5148,7 +5148,8 @@ void MainWindow::onEditorContextMenu(const QPoint& pos)
|
|||
QSynedit::BufferCoord p;
|
||||
int line;
|
||||
if (editor->getPositionOfMouse(p)) {
|
||||
line=p.line;
|
||||
if (!editor->getLineOfMouse(line))
|
||||
line=-1;
|
||||
if (!switchHeaderSourceTarget(editor).isEmpty()) {
|
||||
menu.addAction(ui->actionSwitchHeaderSource);
|
||||
menu.addSeparator();
|
||||
|
@ -5194,7 +5195,6 @@ void MainWindow::onEditorContextMenu(const QPoint& pos)
|
|||
menu.addAction(ui->actionFile_Properties);
|
||||
} else {
|
||||
//mouse on gutter
|
||||
|
||||
if (!editor->getLineOfMouse(line))
|
||||
line=-1;
|
||||
if (canDebug) {
|
||||
|
|
Loading…
Reference in New Issue