|
|
@ -2182,13 +2182,13 @@ CSMDoc::Document::Document (const Files::ConfigurationManager& configuration, co
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
boost::filesystem::path locCustomFiltersPath (configuration.getUserPath());
|
|
|
|
boost::filesystem::path locCustomFiltersPath (configuration.getUserPath());
|
|
|
|
locCustomFiltersPath /= "defaultfilters.omwaddon.project";
|
|
|
|
locCustomFiltersPath /= "customfilters.omwaddon.project";
|
|
|
|
if (boost::filesystem::exists(locCustomFiltersPath))
|
|
|
|
if (boost::filesystem::exists(locCustomFiltersPath))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
boost::filesystem::copy(locCustomFiltersPath, mProjectPath);
|
|
|
|
boost::filesystem::copy(locCustomFiltersPath, mProjectPath);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
boost::filesystem::path filters(mResDir);
|
|
|
|
boost::filesystem::path filters(mResDir);
|
|
|
|
filters /= "defaultfilters.omwaddon.project";
|
|
|
|
filters /= "defaultfilters";
|
|
|
|
boost::filesystem::copy_file(filters, mProjectPath);
|
|
|
|
boost::filesystem::copy_file(filters, mProjectPath);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
getData().loadFile (mProjectPath, false, true);
|
|
|
|
getData().loadFile (mProjectPath, false, true);
|
|
|
|