Proxy settings: closing or resetting the page silently discards unsaved changes #1065

Open
opened 2026-11-05 13:05:32 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-05 13:05:32 +00:00 (Migrated from github.com)

On qt6 at 6e54a48ab571, the Proxy page warns about unsaved changes when using its Back button, but several other exits discard the same edits without asking.

Reproduction

  1. With the proxy initially disabled, open Settings → Connection → Proxy settings.
  2. Enable the proxy and enter 10.0.0.7:9050. Leave the changes unsaved.
  3. Click Connection again in the settings sidebar.
  4. Reopen Proxy settings. The edits are gone and the original disabled state is restored, without a discard prompt.

Two other exits reproduce the same problem:

  • In the node-only interface (-disablewallet), make unsaved Proxy edits and click Done to close Settings.
  • During onboarding, open Network settings → Proxy settings, enable and edit the proxy, then close Network settings with X. Reopening loses the edits; completing onboarding leaves the node without a configured proxy.

As a control, the Proxy page's own Back button shows Discard changes?, and Cancel preserves the edits.

Cause

The draft lives in the Proxy page. Its Back handler checks for unsaved changes, but the sidebar reset, Settings Done action and onboarding close path can destroy that page without consulting the check.

Expected behavior

Every exit that would discard Proxy edits should ask for confirmation or preserve the draft. Cancelling the exit should keep the entered values.

The Wallet-settings navigation path fixed by #1049 now preserves these edits; this report covers the remaining exits above.

On `qt6` at `6e54a48ab571`, the Proxy page warns about unsaved changes when using its Back button, but several other exits discard the same edits without asking. **Reproduction** 1. With the proxy initially disabled, open **Settings → Connection → Proxy settings**. 2. Enable the proxy and enter `10.0.0.7:9050`. Leave the changes unsaved. 3. Click **Connection** again in the settings sidebar. 4. Reopen **Proxy settings**. The edits are gone and the original disabled state is restored, without a discard prompt. Two other exits reproduce the same problem: - In the node-only interface (`-disablewallet`), make unsaved Proxy edits and click **Done** to close Settings. - During onboarding, open **Network settings → Proxy settings**, enable and edit the proxy, then close Network settings with **X**. Reopening loses the edits; completing onboarding leaves the node without a configured proxy. As a control, the Proxy page's own **Back** button shows **Discard changes?**, and **Cancel** preserves the edits. **Cause** The draft lives in the Proxy page. Its Back handler checks for unsaved changes, but the sidebar reset, Settings Done action and onboarding close path can destroy that page without consulting the check. **Expected behavior** Every exit that would discard Proxy edits should ask for confirmation or preserve the draft. Cancelling the exit should keep the entered values. The Wallet-settings navigation path fixed by [#1049](https://github.com/bitcoin-core/gui-qml/pull/1049) now preserves these edits; this report covers the remaining exits above.
Sign in to join this conversation.
No description provided.