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:
parent
fee31510d6
commit
fc535d6d74
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user