set dependencies when saving (requires further refinements)

This commit is contained in:
Marc Zinnschlag 2013-09-23 12:16:56 +02:00
parent 74d683b530
commit 6d9ff39390
3 changed files with 23 additions and 2 deletions

View file

@ -2141,7 +2141,7 @@ void CSMDoc::Document::createBase()
CSMDoc::Document::Document (const std::vector<boost::filesystem::path>& files,
const boost::filesystem::path& savePath, bool new_)
: mSavePath (savePath), mTools (mData), mSaving (*this)
: mSavePath (savePath), mContentFiles (files), mTools (mData), mSaving (*this)
{
if (files.empty())
throw std::runtime_error ("Empty content file sequence");
@ -2200,6 +2200,11 @@ const boost::filesystem::path& CSMDoc::Document::getSavePath() const
return mSavePath;
}
const std::vector<boost::filesystem::path>& CSMDoc::Document::getContentFiles() const
{
return mContentFiles;
}
void CSMDoc::Document::save()
{
if (mSaving.isRunning())