diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 17:20:06 +0100 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-10-27 17:30:51 +0100 |
commit | c3cbb1d14186366f5d1d4c1100488f77df23c9c4 (patch) | |
tree | 0fbe6844a66301f3c6084d916b26ba0c385840cd /src/engine/controls/cuecontrol.cpp | |
parent | 4897fa6b461c972928056880616591dda333c476 (diff) |
Use ControlObject::toBool() method to fix -Wfloat-conversion errors
This fixes a bunch of warnigs regarding implicit casts from double
to bool.
Diffstat (limited to 'src/engine/controls/cuecontrol.cpp')
-rw-r--r-- | src/engine/controls/cuecontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/controls/cuecontrol.cpp b/src/engine/controls/cuecontrol.cpp index d51e7e8dab..4f5163b9d1 100644 --- a/src/engine/controls/cuecontrol.cpp +++ b/src/engine/controls/cuecontrol.cpp @@ -416,7 +416,7 @@ void CueControl::trackLoaded(TrackPointer pNewTrack) { switch (seekOnLoadMode) { case SeekOnLoadMode::Beginning: // This allows users to load tracks and have the needle-drop be maintained. - if (!(m_pVinylControlEnabled->get() && + if (!(m_pVinylControlEnabled->toBool() && m_pVinylControlMode->get() == MIXXX_VCMODE_ABSOLUTE)) { seekOnLoad(0.0); } |