cursors: Only emit cursorsMoved after dragging (not on view updates)

This fixes #59 since selectedSamples will now only change when
cursors are dragged.
This commit is contained in:
Mike Walters
2016-05-01 23:38:27 +01:00
parent 748dc33c22
commit 8c2394df77
2 changed files with 1 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ void PlotView::enableCursors(bool enabled)
if (enabled) {
int margin = viewport()->rect().width() / 3;
cursors.setSelection({viewport()->rect().left() + margin, viewport()->rect().right() - margin});
cursorsMoved();
}
viewport()->update();
}