diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-10 07:06:26 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-10 07:07:59 +0900 |
commit | aa4931e8c613f742cb05da77dfdad73c6f3008c9 (patch) | |
tree | 596c0158e465931a9539abac643c42139f869d56 /qt-ui/maintab.cpp | |
parent | 44c9316f14f9be21837583739e8d54e9c6d29569 (diff) | |
download | subsurface-aa4931e8c613f742cb05da77dfdad73c6f3008c9.tar.gz |
Show a cylinder widget in the dive planner
This is intended to allow the user to provide the gases / cylinders that
she will be diving with. With that information the planner can warn the
user about insufficient gases, but more importantly it can show relevant
gases in the gas select drop down.
Right now the add cylinder button doesn't add a cylinder - that's a
problem.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 2708687da..6c071d911 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -25,7 +25,7 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), weightModel(new WeightModel()), - cylindersModel(new CylindersModel()), + cylindersModel(CylindersModel::instance()), editMode(NONE) { ui.setupUi(this); |