mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +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;
|
||||
s.beginGroup("TecDetails");
|
||||
setVisible(s.value(visibilityKey).toBool());
|
||||
if (s.value(visibilityKey).toBool())
|
||||
visible = true;
|
||||
else
|
||||
visible = false;
|
||||
visible = s.value(visibilityKey).toBool();
|
||||
setVisible(visible);
|
||||
}
|
||||
|
||||
void DiveHeartrateItem::setVisibilitySettingsKey(const QString &key)
|
||||
|
|
Loading…
Reference in a new issue