|
|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2011-2015 by Jonathan Naylor G4KLX
|
|
|
|
* Copyright (C) 2011-2015,2018 by Jonathan Naylor G4KLX
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
@ -828,11 +828,12 @@ m_splitTimeout(DEFAULT_SPLIT_TIMEOUT)
|
|
|
|
|
|
|
|
|
|
|
|
wxTextFile file(m_fileName.GetFullPath());
|
|
|
|
wxTextFile file(m_fileName.GetFullPath());
|
|
|
|
|
|
|
|
|
|
|
|
if (!file.Exists())
|
|
|
|
if (!file.Exists()) {
|
|
|
|
if(mustExist)
|
|
|
|
if (mustExist)
|
|
|
|
throw std::runtime_error("Configuration file does not exist");
|
|
|
|
throw std::runtime_error("Configuration file does not exist");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!file.Open())
|
|
|
|
if (!file.Open())
|
|
|
|
throw std::runtime_error("Cannot open the configuration file");
|
|
|
|
throw std::runtime_error("Cannot open the configuration file");
|
|
|
|
|