Skip to content

[Bug]: Screenshot export does not require the user to pick a location #5899

@kwvanderlinde

Description

@kwvanderlinde

Describe the Bug

In the Export Dialog, if the Filesystem tab is active but no Location has been chosen, clicking Export will create a screenshot based as a sibling to the working directory.

To Reproduce

  1. Open a campaign.
  2. Go to File > Export > Screenshot.
  3. Click Export without filling the Location field.
  4. Go to the working directory
    • This varies based on how you run MapTool. To find it, go to Help > Gather Debug Information, then look for the User Dir. under ==== User Information ====.
  5. Go one directory up.
  6. Look for a *.png file with the same name as the working directory from (4). This is your screenshot.

Note

If MT doesn't have permission to write to the parent of the working directory, there will be an error message shown and no screenshot will be written. This repro requires permissions for the given directory.
Image

Expected Behaviour

The export should not happen until the user pick a location.

Screenshots

No response

MapTool Info

1.18.6

Desktop

Linux Mint 22.2

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions