From 8180e494270e3b09f7c52790251a860bb1da66e4 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Thu, 15 Mar 2018 22:41:59 +0100 Subject: Cleanup: Initialize variable MainTab::lastSelectedDive This variable was read before being set. Signed-off-by: Berthold Stoeger --- desktop-widgets/tab-widgets/maintab.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp index 1f1997507..82e9b8abc 100644 --- a/desktop-widgets/tab-widgets/maintab.cpp +++ b/desktop-widgets/tab-widgets/maintab.cpp @@ -44,6 +44,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), cylindersModel(new CylindersModel(this)), editMode(NONE), copyPaste(false), + lastSelectedDive(true), lastTabSelectedDive(0), lastTabSelectedDiveTrip(0), currentTrip(0) -- cgit v1.2.3-70-g09d2