Shadow Files

- Added a missing check for file overwrites.
This commit is contained in:
Paul Beckingham 2010-11-28 12:04:44 -05:00
parent bdc167fd6a
commit 5bf8feefca

View file

@ -296,6 +296,10 @@ void Context::shadow ()
throw std::string ("Configuration variable 'shadow.file' is set to "
"overwrite your completed tasks. Please change it.");
if (shadowFile.data == dataLocation + "/undo.data")
throw std::string ("Configuration variable 'shadow.file' is set to "
"overwrite your undo log. Please change it.");
std::string oldCurses = config.get ("curses");
std::string oldColor = config.get ("color");