diff --git a/src/qgis_gea_plugin/gui/qgis_gea.py b/src/qgis_gea_plugin/gui/qgis_gea.py index 2a356d4..cd6e3c6 100644 --- a/src/qgis_gea_plugin/gui/qgis_gea.py +++ b/src/qgis_gea_plugin/gui/qgis_gea.py @@ -1352,8 +1352,8 @@ def on_generate_report(self): elif group == SITE_GROUP_NAME: message = tr( - "Report Generation Error:" - " No site drawing has been created or saved. " + "Report Generation Error: " + "No site drawing has been created or saved. " "To generate a report, please complete the " "following steps: fill in the attributes, " "draw a site polygon, save your work, and " @@ -1362,6 +1362,13 @@ def on_generate_report(self): if not self.is_project_info_valid(message): return + if site_layer.dataProvider().dataSourceUri().startswith('memory'): + self.show_message( + message, + Qgis.Warning + ) + return + # Get capture date and area feature = features[0]