#5225 Plot Template: Fix crash when selecting directory instead of template item

This commit is contained in:
Magne Sjaastad 2019-12-16 13:02:31 +01:00
parent fee31510d6
commit fc535d6d74

View File

@ -55,7 +55,10 @@ std::vector<RimPlotTemplateFileItem*> RicSelectPlotTemplateUi::selectedPlotTempl
for ( const auto& a : m_selectedPlotTemplates() )
{
objs.push_back( a );
if ( a )
{
objs.push_back( a );
}
}
return objs;