mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Code cleanup in diveplanner.cpp
Move a variable declaration and added some initialization. Added missing spaces. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
24c915e97c
commit
daab13eba9
1 changed files with 2 additions and 2 deletions
|
@ -421,7 +421,6 @@ void DivePlannerWidget::printDecoPlan()
|
|||
PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
|
||||
{
|
||||
ui.setupUi(this);
|
||||
QStringList rebreather_modes;
|
||||
|
||||
plannerModel->getDiveplan().bottomsac = prefs.bottomsac;
|
||||
plannerModel->getDiveplan().decosac = prefs.decosac;
|
||||
|
@ -448,7 +447,8 @@ PlannerSettingsWidget::PlannerSettingsWidget(QWidget *parent, Qt::WindowFlags f)
|
|||
disableDecoElements((int) prefs.planner_deco_mode);
|
||||
|
||||
// should be the same order as in dive_comp_type!
|
||||
for (int i=0; i < FREEDIVE; i++)
|
||||
QStringList rebreather_modes = QStringList();
|
||||
for (int i = 0; i < FREEDIVE; i++)
|
||||
rebreather_modes.append(gettextFromC::tr(divemode_text_ui[i]));
|
||||
ui.rebreathermode->insertItems(0, rebreather_modes);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue