mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup minor issues with ceilings for individualy tissues
In commit b8d31d8534b ("Show ceilings for individual tissues") Robert inadvertently broke the connection from dc_ceilings to red_ceilings and also didn't correctly enable the checkbox for all_tissues when calc_ceilings was already set in the preferences before the dialog was created (and therefore the connection in the .ui file isn't run). There's also a simplification / cleanup to the code deciding whether to show all the tissues. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
344a429e48
commit
32d8051404
3 changed files with 81 additions and 67 deletions
|
@ -41,7 +41,7 @@ PreferencesDialog::PreferencesDialog(QWidget* parent, Qt::WindowFlags f) : QDial
|
|||
ui->calculated_ceiling->setChecked(B(calcceiling, profile_calc_ceiling));
|
||||
ui->increment_3m->setEnabled(ui->calculated_ceiling->isChecked());
|
||||
ui->increment_3m->setChecked(B(calcceiling3m, calc_ceiling_3m_incr));
|
||||
ui->all_tissues->setEnabled(ui->all_tissues->isChecked());
|
||||
ui->all_tissues->setEnabled(ui->calculated_ceiling->isChecked());
|
||||
ui->all_tissues->setChecked(B(calcalltissues, calc_all_tissues));
|
||||
|
||||
ui->gflow->setValue((int)(I(gflow, gflow)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue