create project file when saving content file

This commit is contained in:
Marc Zinnschlag 2013-09-27 11:36:06 +02:00
parent 96fd1c35bf
commit 5779f799ab
15 changed files with 113 additions and 44 deletions

View file

@ -2140,8 +2140,9 @@ void CSMDoc::Document::createBase()
}
CSMDoc::Document::Document (const std::vector<boost::filesystem::path>& files,
const boost::filesystem::path& savePath, bool new_)
: mSavePath (savePath), mContentFiles (files), mTools (mData), mSaving (*this)
const boost::filesystem::path& savePath, bool new_,
const boost::filesystem::path& projectPath)
: mSavePath (savePath), mContentFiles (files), mTools (mData), mSaving (*this, projectPath)
{
if (files.empty())
throw std::runtime_error ("Empty content file sequence");