mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4733 Summary Template : Add reload of templates
Adjust save and load of templates Add save path to preferences
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user