diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-09 19:49:15 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-09 14:42:07 -0800 |
commit | 359ea7551618d553952156a5a010a835197fbf9f (patch) | |
tree | 533b679fcb25302d4dbc4e033fc5121390503f29 /qt-ui/maintab.cpp | |
parent | e88c198b93f5b57ef4dbd348ef2975d2c866785e (diff) | |
download | subsurface-359ea7551618d553952156a5a010a835197fbf9f.tar.gz |
maintab.cpp improvements.
* Initialize(lazy) MainTab::multiEditEquipmentPlaceholder struct
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 103413ac1..0aa683dcb 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -31,6 +31,9 @@ MainTab::MainTab(QWidget *parent) : QTabWidget(parent), editMode(NONE) { ui.setupUi(this); + + memset(&multiEditEquipmentPlaceholder, 0, sizeof(multiEditEquipmentPlaceholder)); + ui.cylinders->setModel(cylindersModel); ui.weights->setModel(weightModel); closeMessage(); |