diff --git a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonFile.cpp b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonFile.cpp index a4d358887d..38f901516c 100644 --- a/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonFile.cpp +++ b/ApplicationLibCode/ProjectDataModel/Polygons/RimPolygonFile.cpp @@ -77,6 +77,15 @@ void RimPolygonFile::loadData() m_polygons.deleteChildren(); m_polygons.setValue( polygonsFromFile ); + + if ( polygonsFromFile.empty() ) + { + RiaLogging::warning( "No polygons found in file: " + m_fileName().path() ); + } + else + { + RiaLogging::warning( QString( "Imported %1 polygons from file: " ).arg( polygonsFromFile.size() ) + m_fileName().path() ); + } } }