summaryrefslogtreecommitdiffstats
path: root/src/mixer/playermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixer/playermanager.cpp')
-rw-r--r--src/mixer/playermanager.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mixer/playermanager.cpp b/src/mixer/playermanager.cpp
index bc2d390baf..18590489f0 100644
--- a/src/mixer/playermanager.cpp
+++ b/src/mixer/playermanager.cpp
@@ -580,8 +580,13 @@ void PlayerManager::slotLoadTrackToPlayer(TrackPointer pTrack, QString group, bo
}
mixxx::Duration elapsed = m_cloneTimer.restart();
- bool cloneOnDoubleTap = m_pConfig->getValue<bool>(
- ConfigKey("[Controls]", "CloneDeckOnLoadDoubleTap"));
+ // If not present in the config, use the default value
+ if (!m_pConfig->exists(ConfigKey("[Controls]","CloneDeckOnLoadDoubleTap"))) {
+ bool cloneOnDoubleTap = true;
+ } else {
+ bool cloneOnDoubleTap = m_pConfig->getValue<bool>(
+ ConfigKey("[Controls]", "CloneDeckOnLoadDoubleTap"));
+ };
if (cloneOnDoubleTap && m_lastLoadedPlayer == group && elapsed < mixxx::Duration::fromSeconds(0.5)) {
// load was pressed twice quickly while [Controls],CloneDeckOnLoadDoubleTap is TRUE,
// so clone another playing deck instead of loading the selected track