qml: Fix onboarding data directory failures #864

Closed
johnny9 wants to merge 3 commits from fix-onboarding-top3 into qt6 AGit
johnny9 commented 2026-08-17 23:14:22 +00:00 (Migrated from github.com)

Depends on #812.

This branch is based on the current head of #812. Until #812 merges, this pull request also includes that commit.

This fixes three onboarding failures:

  • Show the data directory chooser when a saved data directory cannot be accessed. Config read errors now return a startup error instead of aborting.
  • Use a Qt 6.2-compatible folder dialog while keeping the Qt 6.5 and newer implementation.
  • Validate explicit data directories before onboarding. Resolve valid relative paths from the current directory and report invalid paths through normal startup error handling.

Tests:

  • Added unit tests for unreadable saved directories, config read errors, invalid explicit directories, and valid relative directories.
  • Added a QML contract test for both folder dialog implementations.
  • Focused OptionsModel tests pass: 6 passed.
  • Full QML test target passes.
  • Application and test targets build.
  • Memory-safety policy scan reports no new findings in changed lines.

Fixes #775.
Fixes #783.
Fixes #846.

Depends on #812. This branch is based on the current head of #812. Until #812 merges, this pull request also includes that commit. This fixes three onboarding failures: - Show the data directory chooser when a saved data directory cannot be accessed. Config read errors now return a startup error instead of aborting. - Use a Qt 6.2-compatible folder dialog while keeping the Qt 6.5 and newer implementation. - Validate explicit data directories before onboarding. Resolve valid relative paths from the current directory and report invalid paths through normal startup error handling. Tests: - Added unit tests for unreadable saved directories, config read errors, invalid explicit directories, and valid relative directories. - Added a QML contract test for both folder dialog implementations. - Focused OptionsModel tests pass: 6 passed. - Full QML test target passes. - Application and test targets build. - Memory-safety policy scan reports no new findings in changed lines. Fixes #775. Fixes #783. Fixes #846.
johnny9 commented 2026-09-09 13:24:59 +00:00 (Migrated from github.com)

Superseded by #883

Superseded by #883
Sign in to join this conversation.
No description provided.