Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui: Handle snapshots with empty names in snapshot menu #1547

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

antangelo
Copy link
Contributor

Snapshots without names are somewhat difficult to create (must use savevm "" in the monitor, QMP, or qemu-img) but should be handled correctly regardless.

This requires adding an additional present bool to the config. I preserved compatibility with existing shortcut bindings by checking the present field or that the shortcut snapshot name string is not empty.

Fixes #1543

@antangelo antangelo force-pushed the ui/snapshot-empty-name branch from acc8f10 to 41cda47 Compare October 26, 2023 23:08
@antangelo antangelo force-pushed the ui/snapshot-empty-name branch from 41cda47 to 58e4d91 Compare June 11, 2024 04:19
@mborgerson
Copy link
Member

mborgerson commented Jun 17, 2024

Should we just prevent creating snapshots with the empty string as the name? This seems like a lot of work to handle this weird case

@antangelo
Copy link
Contributor Author

We can prevent them from being created within xemu, but that won't cover existing empty-name snapshots or those created by qemu-img (which are also niche cases).

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.

Crash when going to Snapshots settings.
2 participants