summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-01-05 09:17:01 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-04 23:19:52 -0800
commit9e2e62ec4fca801642205bec088ccc03d3af2e1f (patch)
treeb6f94066da2b6a2e49e4a256204b8da316fc5fe3 /qt-ui/maintab.cpp
parent48b88f6aca2d59419c7b1897300b4bf6bd9db893 (diff)
downloadsubsurface-9e2e62ec4fca801642205bec088ccc03d3af2e1f.tar.gz
Initialize edit hack variable
The accepting mode variable must be initialized to false to allow editing of dive data. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 2906081a0..e6e530d3d 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -190,6 +190,8 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent),
connect(fb, &FacebookManager::justLoggedOut, ui.facebookPublish, &QPushButton::hide);
connect(ui.facebookPublish, &QPushButton::clicked, fb, &FacebookManager::sendDive);
ui.facebookPublish->setVisible(fb->loggedIn());
+
+ acceptingEdit = false;
}
MainTab::~MainTab()