mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
Simplify code
This seems like a rather obvious optimization... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5967dd193
commit
f7a327077b
1 changed files with 2 additions and 5 deletions
|
@ -302,11 +302,8 @@ void DiveHeartrateItem::preferencesChanged()
|
||||||
{
|
{
|
||||||
QSettings s;
|
QSettings s;
|
||||||
s.beginGroup("TecDetails");
|
s.beginGroup("TecDetails");
|
||||||
setVisible(s.value(visibilityKey).toBool());
|
visible = s.value(visibilityKey).toBool();
|
||||||
if (s.value(visibilityKey).toBool())
|
setVisible(visible);
|
||||||
visible = true;
|
|
||||||
else
|
|
||||||
visible = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DiveHeartrateItem::setVisibilitySettingsKey(const QString &key)
|
void DiveHeartrateItem::setVisibilitySettingsKey(const QString &key)
|
||||||
|
|
Loading…
Reference in a new issue