diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-01-06 11:59:28 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-01-10 02:37:03 +0900 |
commit | 2feb7077f89ad59c63ae4119717f2717c949297a (patch) | |
tree | fb92b4e2b6ea168323143f27737d63b1f7461de6 | |
parent | 1f35b005fbc772424eca97bce8c43c43e0a3c947 (diff) | |
download | subsurface-2feb7077f89ad59c63ae4119717f2717c949297a.tar.gz |
code cleanup: add missing initialization
While technically the initial value of this variable makes no difference as
it is set when the first dive is displayed, technically Coverity is correct.
Fixes CID 353273
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | desktop-widgets/tab-widgets/TabDiveInformation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp index 68e4933b1..df70e4834 100644 --- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp +++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp @@ -61,6 +61,7 @@ TabDiveInformation::TabDiveInformation(QWidget *parent) : TabBase(parent), ui(ne connect(action, &QAction::triggered, this, &TabDiveInformation::closeWarning); ui->multiDiveWarningMessage->addAction(action); ui->multiDiveWarningMessage->hide(); + manualDive = false; updateWaterTypeWidget(); QPixmap warning (":salinity-warning-icon"); ui->salinityOverWrittenIcon->setPixmap(warning); |