diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-06-30 07:40:13 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-07-03 14:30:46 -0700 |
commit | 2a0ae4991bf29a38a564858676c7a0ff7a16e7e4 (patch) | |
tree | 69953ea0937a2f2dc131b636fd5573c328921024 /profile-widget/profilewidget2.cpp | |
parent | 329fcf7fdca40b73ec502d0835278f8ab3a70ff1 (diff) | |
download | subsurface-2a0ae4991bf29a38a564858676c7a0ff7a16e7e4.tar.gz |
profile: remove EDIT_STATE from ProfileWidget2
This state is not used anywhere.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 883cb7e62..90058ebb6 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -866,7 +866,7 @@ void ProfileWidget2::mousePressEvent(QMouseEvent *event) if (zoomLevel) return; QGraphicsView::mousePressEvent(event); - if (currentState == PLAN || currentState == ADD || currentState == EDIT) + if (currentState == PLAN || currentState == ADD) shouldCalculateMaxDepth = shouldCalculateMaxTime = false; } @@ -890,7 +890,7 @@ void ProfileWidget2::mouseReleaseEvent(QMouseEvent *event) if (zoomLevel) return; QGraphicsView::mouseReleaseEvent(event); - if (currentState == PLAN || currentState == ADD || currentState == EDIT) { + if (currentState == PLAN || currentState == ADD) { shouldCalculateMaxTime = shouldCalculateMaxDepth = true; replot(); } |