Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an error when generating a report #144

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/qgis_gea_plugin/gui/qgis_gea.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,8 +1243,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 "
Expand All @@ -1253,6 +1253,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]

Expand Down
Loading