mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Merge remote-tracking branch 'origin/bstoeger-tabwidget'
This commit is contained in:
commit
13482a961d
1 changed files with 4 additions and 4 deletions
|
|
@ -107,11 +107,11 @@ void MainTab::updateDiveInfo()
|
||||||
if (DivePlannerPointsModel::instance()->isPlanner())
|
if (DivePlannerPointsModel::instance()->isPlanner())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If there is no current dive, disable all widgets except the last two,
|
// If there is no current dive, disable all widgets except the last one,
|
||||||
// which are the dive site tab and the dive computer tabs.
|
// which is the dive site tab
|
||||||
// TODO: Conceptually, these two shouldn't even be a tabs here!
|
// TODO: Conceptually, this shouldn't even be a tab here!
|
||||||
bool enabled = current_dive != nullptr;
|
bool enabled = current_dive != nullptr;
|
||||||
for (int i = 0; i < extraWidgets.size() - 2; ++i)
|
for (int i = 0; i < extraWidgets.size() - 1; ++i)
|
||||||
extraWidgets[i]->setEnabled(enabled);
|
extraWidgets[i]->setEnabled(enabled);
|
||||||
|
|
||||||
if (current_dive) {
|
if (current_dive) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue