+ fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it

This commit is contained in:
wmayer
2015-09-19 18:59:22 +02:00
parent 55916175d3
commit eb05da7cd7
6 changed files with 90 additions and 20 deletions

View File

@@ -141,6 +141,26 @@ void Writer::clearModes()
Modes.clear();
}
void Writer::addError(const std::string& msg)
{
Errors.push_back(msg);
}
bool Writer::hasErrors() const
{
return (!Errors.empty());
}
void Writer::clearErrors()
{
Errors.clear();
}
std::vector<std::string> Writer::getErrors() const
{
return Errors;
}
std::string Writer::addFile(const char* Name,const Base::Persistence *Object)
{
// always check isForceXML() before requesting a file!