Skip to content

[BUG] QuickView v5 - Unexpected Closing of the Associated Windows Explorer when using "X" button #128

@taylor-p-mason

Description

@taylor-p-mason

I’ve noticed a consistent issue when exiting QuickView (v5) by clicking the window “X” button. In addition to closing QuickView, it also closes the associated Windows Explorer window. This does not appear to be a system crash — only the originating Explorer window is closed, not all other Explorer instances.

This does not happen if I close the quickview image window using the right click menu > exit, or the ESC or the Mbutton (mouse wheel button), and the issue never happens on any other applications, it's only with closing quickview using the "X" button.

This unwanted action disrupts the workflow, especially when reviewing multiple images from a folder, since the file browser needs to be reopened each time.

I suspect this is an unintended side effect of how QuickView hooks into Windows Explorer? QuickView’s X button handler maybe incorrectly closing its parent Explorer window, right?

Steps to Reproduce:

Open a Windows Explorer window
Navigate to an image file
Open the image with QuickView
Click the "X" button in the QuickView window

Expected Behavior:

Only the QuickView window should close.

Actual Behavior:

QuickView Closes
The same Windows Explorer window used to launch the image also closes
Other Explorer windows (if open) remain unaffected.

Additional Observations:

Closing QuickView using Esc works correctly (Explorer stays open)
Closing using middle mouse button (MButton) works correctly
Closing via Alt+F4 works correctly
Closing via right-click → Close (taskbar menu) works correctly
The issue occurs consistently only when using the "X" button
This behavior is reproducible 100% of the time

This appears to be specific to the "X" button handler. It may be incorrectly sending a close message (e.g., WM_CLOSE) to the parent Explorer window or mishandling a window handle associated with the launching process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions