diff options
author | Be <be@mixxx.org> | 2020-11-25 19:02:14 -0600 |
---|---|---|
committer | Be <be@mixxx.org> | 2020-11-25 19:02:14 -0600 |
commit | 1c544cd5f3ab78bdb8a083ff5a6493c00739f111 (patch) | |
tree | 8241d4ace3925558685c14ec97236dd34afa697f | |
parent | 7d6f490efe0b9ebbdedcae06717a41b41163a6bf (diff) |
ConfigObject: add comment explaining reason to check if file exists
-rw-r--r-- | src/preferences/configobject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/preferences/configobject.cpp b/src/preferences/configobject.cpp index fb6b214262..74610868cf 100644 --- a/src/preferences/configobject.cpp +++ b/src/preferences/configobject.cpp @@ -237,6 +237,7 @@ bool ConfigObject<ValueType>::save() { } QFile oldConfig(m_filename); + // Trying to remove a file that does not exist would fail if (oldConfig.exists()) { if (!oldConfig.remove()) { qWarning().nospace() << "Could not remove old config file: " |