Skip to content

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Oct 6, 2025

On Windows, with Tiled compiled against Qt 6, the Tile Animation Editor would fail to become visible when it had been left in a maximized state before closing Tiled.

Somehow the dialog in a maximized state was receiving WM_DESTROY when its parent QMainWindow was added to the layout in
DocumentManager::setEditor:

External WM_DESTROY received for QWidgetWindow(0x20d997eba40, name="TileAnimationEditorWindow") , parent: QWindow(0x0) , transient parent: QWindow(0x0)

I'm not entirely sure what causes this behavior, but I've found that lazily creating the TileAnimationEditor on the first time it is opened provided a workaround.

Closes #4223

On Windows, with Tiled compiled against Qt 6, the Tile Animation Editor
would fail to become visible when it had been left in a maximized state
before closing Tiled.

Somehow the dialog in a maximized state was receiving WM_DESTROY when
its parent QMainWindow was added to the layout in
DocumentManager::setEditor:

> External WM_DESTROY received for QWidgetWindow(0x20d997eba40, name="TileAnimationEditorWindow") , parent: QWindow(0x0) , transient parent: QWindow(0x0)

I'm not entirely sure what causes this behavior, but I've found that
lazily creating the TileAnimationEditor on the first time it is opened
provided a workaround.

Closes #4223
@bjorn bjorn force-pushed the fix-restore-tile-animation-editor branch from a5edc73 to 66d6361 Compare October 15, 2025 14:33
@bjorn bjorn merged commit d32cda9 into master Oct 15, 2025
12 of 14 checks passed
@bjorn bjorn deleted the fix-restore-tile-animation-editor branch October 15, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to show the Tile Animation Editor window.

1 participant