Skip to content

Closing create-wallet progress does not cancel creation #92

Closed

Description

@kiwidream

Summary

The qbit-qt create-wallet progress dialog is application-modal and has no Cancel button, but its window close affordance remains available. Closing the dialog deletes the only progress surface and removes modality, while the underlying CreateWalletActivity continues creating the wallet.

There is no cancellation connection from the dialog to the activity. If creation succeeds, the completed wallet is still added and can become the active GUI wallet.

Impact

Closing what appears to be the active create-wallet operation can still:

  • create and persist the wallet;
  • load it into the process;
  • register it in startup state; and
  • switch qbit-qt to the newly created wallet later.

This makes the displayed outcome disagree with durable wallet state and user intent. It is not a demonstrated key-confidentiality failure.

Steps to reproduce

Use a latch-controlled wallet creation operation:

  1. Start creating a wallet and pause the worker while the progress dialog is visible.
  2. Close the progress window using its title-bar control or Escape.
  3. Observe that the progress surface disappears and the main interface becomes available.
  4. Release the worker.
  5. Observe that wallet creation continues and the completed wallet is added or selected.
  6. Restart qbit-qt and inspect the wallet directory, loaded-wallet list, startup settings, and active-wallet selection.

Relevant code

Desired outcome

Adopt one explicit and truthful contract:

  • prevent the progress window from closing while a non-cancellable operation is running;
  • implement cancellation up to a clearly defined durable boundary; or
  • explicitly offer “Continue in background,” retain accessible status, and avoid an unexpected active-wallet switch.

Closing the only progress surface must not be presented as cancellation when creation will continue unchanged.

Suggested tests

Add latch-controlled Qt coverage for close and Escape:

  • before database creation;
  • during encryption and descriptor setup;
  • after durable creation but before model adoption; and
  • immediately before the activity emits created.

For each boundary, assert the resulting listwalletdir, listwallets, startup setting, active-wallet selection, and restart state match the outcome shown to the user.

Version and platform

  • Source-inspected on main at 7e48b45f2a8e75268fd1fd44d0091a4bdde2377e.
  • Also applies to 1.0.0 at 68a12571bcb56597c4865abce474a6cc3d356fc3; the relevant files are identical.
  • Window-close behavior should be verified across supported Qt platforms and window managers.

Activity

  1. added
    bug
    on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions