aboutsummaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/profilewidget2.cpp4
-rw-r--r--profile-widget/profilewidget2.h1
2 files changed, 2 insertions, 3 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();
}
diff --git a/profile-widget/profilewidget2.h b/profile-widget/profilewidget2.h
index b5114c63d..07be89783 100644
--- a/profile-widget/profilewidget2.h
+++ b/profile-widget/profilewidget2.h
@@ -60,7 +60,6 @@ public:
enum State {
EMPTY,
PROFILE,
- EDIT,
ADD,
PLAN,
INVALID