mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5225 Plot Template: Fix crash when selecting directory instead of template item
This commit is contained in:
@@ -55,7 +55,10 @@ std::vector<RimPlotTemplateFileItem*> RicSelectPlotTemplateUi::selectedPlotTempl
|
|||||||
|
|
||||||
for ( const auto& a : m_selectedPlotTemplates() )
|
for ( const auto& a : m_selectedPlotTemplates() )
|
||||||
{
|
{
|
||||||
objs.push_back( a );
|
if ( a )
|
||||||
|
{
|
||||||
|
objs.push_back( a );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return objs;
|
return objs;
|
||||||
|
|||||||
Reference in New Issue
Block a user