summaryrefslogtreecommitdiff
path: root/src/configmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configmanager.cpp')
-rw-r--r--src/configmanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configmanager.cpp b/src/configmanager.cpp
index a25c26802..219f19905 100644
--- a/src/configmanager.cpp
+++ b/src/configmanager.cpp
@@ -175,6 +175,12 @@ void ConfigManager::backupConfig(const std::string &name)
const std::string fileName3 = std::string(settings.configDir).append(
"/").append(name);
StringVect arr;
+ if (Files::existsLocal(fileName3) == false)
+ {
+ logger->log("Config %s not exists, backup skipped.",
+ name.c_str());
+ return;
+ }
if (Files::loadTextFileLocal(fileName3, arr) == true)
{
if (arr.size() == 0)