Skip to content

Conversation

@emuguru
Copy link
Contributor

@emuguru emuguru commented Dec 15, 2025

Summary

Fixes a regression introduced in commit 75499ad.

On some platforms (Qt 5.15 / Wayland), QListView::activated() triggers on a single click,
causing virtual machines to start unintentionally. This change replaces the use of
activated() with:

  • Single click → no VM start (fixes unintended activation)
  • Double click → starts VM (classic behavior)
  • Enter → starts VM (new feature)

Checklist

  • I have tested my changes locally and validated that the functionality works as intended

Testing

  • Single click on a VM → nothing happens
  • Double click on a VM → VM starts
  • Press Enter while VM selected → VM starts
  • Verified on Wayland + Qt 5.15.18

References

  • Regression commit: 75499ad
  • GDB backtrace confirming the original issue:
    gdb.txt

  Fix regression introduced in 75499ad:
    activated() triggered VM start on single click.
    Use doubleClicked() and Enter shortcut instead.
@OBattler OBattler merged commit 1bdf3b8 into 86Box:master Dec 15, 2025
44 checks passed
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.

2 participants