diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-29 18:02:03 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-29 18:02:03 +0200 |
| commit | 04e7db97ae421212614a6ed92807485f743966d3 (patch) | |
| tree | 3a6cf6c1977639c0f3bfdefaa5ce7d209aead0ca /tests/test_searchterm.cpp | |
| parent | c4a38a5871250b9c952f3eb633ab4cf2ed3d717a (diff) | |
| download | qtmaildir-04e7db97ae421212614a6ed92807485f743966d3.tar.gz qtmaildir-04e7db97ae421212614a6ed92807485f743966d3.zip | |
fix: show the account's startup view for a lone --account
The account dropdown deliberately does not re-run the query: by hand the
user picks a filter next. A launch from another program has no next click,
so `--account work` on its own moved the dropdown and changed nothing the
user could see.
When the account selector applies and no thread or message was given, the
startup view now runs again in the new account. The constructor's startup
path moves into runStartupView() and both callers use it, so the view is
resolved the same way in each: a generated filter is asked for the
account's own query rather than having its all-accounts query wrapped in
the account's path.
The test starts on the trash view because its per-account query is the
account's own trash path; for a tag filter the generated and the wrapped
queries are the same string, and a test on one passed against the wrap.
It asserts on the generated string and on the rows, and fails with the
wrap put back.
anEmptySelectorSetChangesNothing also asserts that no query ran, which the
bar and the dropdown alone cannot show.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_searchterm.cpp')
0 files changed, 0 insertions, 0 deletions
