summaryrefslogtreecommitdiffstats
path: root/qt-ui/simplewidgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/simplewidgets.cpp')
-rw-r--r--qt-ui/simplewidgets.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index 192de3a80..47d2e4a07 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -171,8 +171,7 @@ SetpointDialog *SetpointDialog::instance()
void SetpointDialog::setpointData(struct divecomputer *divecomputer, int second)
{
dc = divecomputer;
- time = second;
- qDebug() << second << time;
+ time = second < 0 ? 0 : second;
}
void SetpointDialog::buttonClicked(QAbstractButton *button)