Skip to content

[Bug] Project closing confirmation not shownΒ #2363

@learn-more

Description

@learn-more

Operating System

Windows

What's the issue you encountered?

When closing a file with the middle mouse button (after restarting imhex following a crash), the dialog Some changes haven't been saved to a Project yet. is not shown

How can the issue be reproduced?

  1. Create a new file (ctrl+n)
  2. Past a pattern that crashes ImHex (see below)
  3. Evaluate the pattern
  4. Start ImHex again
  5. Choose 'Yes, restore'
  6. Click the 'Unsaved File' tab with the middle mouse button
  7. The file and pattern are gone

ImHex Version

1.37.4

ImHex Build Type

  • Nightly or built from sources

Installation type

winget (via UniGetUI)

Additional context?

No response

Crashing pattern:

fn get_tag(u8 tag) {
    return tag;
};

struct Tag {
    u8 tag[[std::format("{}", tag)]];
}[[name(get_tag(tag))]];

Tag file @ 0x0;

Crash tracked in #2364

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