#4733 Summary Template : Add reload of templates

Adjust save and load of templates
Add save path to preferences
This commit is contained in:
Magne Sjaastad
2019-09-19 11:39:32 +02:00
parent c6dbc34183
commit f2ac170b66
19 changed files with 535 additions and 174 deletions

View File

@@ -363,8 +363,10 @@ void RimProject::setScriptDirectories( const QString& scriptDirectories )
//--------------------------------------------------------------------------------------------------
void RimProject::setPlotTemplateFolders( const QStringList& plotTemplateFolders )
{
if ( m_plotTemplateFolderItem() ) delete m_plotTemplateFolderItem();
m_plotTemplateFolderItem = new RimPlotTemplateFolderItem();
if ( !m_plotTemplateFolderItem() )
{
m_plotTemplateFolderItem = new RimPlotTemplateFolderItem();
}
m_plotTemplateFolderItem->createRootFolderItemsFromFolderPaths( plotTemplateFolders );
}