Show Error dialog when export-to-image fails to save by kunal649 · Pull Request #4397 · mapeditor/tiled (original) (raw)

Fixes an Issue #4396 where File → Export as Image would silently close the dialog if the image could not be saved, giving the user no feedback about the failure.

The return value of QImage::save() was not being checked. this commit wraps the call in an error check and shows a warning dialog if saving fails, consistent with how other export operations handle errors in Tiled.

thanks :-)

Screenshot 2026-03-06 115817