• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IJHack / QtPass / 24588315042
55%

Build:
DEFAULT BRANCH: main
Ran 17 Apr 2026 09:57PM UTC
Jobs 1
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Apr 2026 09:53PM UTC coverage: 21.778% (-0.04%) from 21.818%
24588315042

push

github

web-flow
fix: clear stale selection and update proxy filter on profile change (#1033)

When switching profiles or accepting config changes:

- `proxyModel.store` was never updated, so the filter (StoreModel::showThis)
  kept using the old profile's path — causing Util::getDir to compute
  `../../old-profile/subdir/` relative paths when adding new entries.
- Qt's delayed layout re-evaluation (doDelayedItemsLayout, triggered by
  setRootIndex) could reinstate a stale currentIndex, compounding the issue.
- Decrypted content, currentDir, clipboard text, passwordName, and the panel
  were not cleared, leaving stale data from the previous profile visible.

Fix:
- Add StoreModel::setStore() to update the filter path without reinitialising
  the source model.
- Call proxyModel.setStore() before mapFromSource so filtering is correct
  when the new root is mapped.
- Call deselect() to clear all stale UI state (currentDir, clipboard, panel,
  passwordName, edit/delete actions).
- Call ui->treeView->setCurrentIndex(QModelIndex()) after setRootIndex so
  the view's own currentIndexSet state is also cleared.
- Cache QtPassSettings::getPassStore() in a local variable to avoid
  redundant settings reads.
- Apply the same fixes to config() where the same staleness issues exist.

Closes #248

0 of 16 new or added lines in 2 files covered. (0.0%)

10 existing lines in 2 files now uncovered.

1176 of 5400 relevant lines covered (21.78%)

8.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
0.0
0.0% src/mainwindow.cpp
4
53.78
-1.87% src/storemodel.cpp

Coverage Regressions

Lines Coverage ∆ File
9
0.0
0.0% src/qrc_qmake_qmake_qm_files.cpp
1
0.0
0.0% src/mainwindow.cpp
Jobs
ID Job ID Ran Files Coverage
1 24588315042.1 17 Apr 2026 09:57PM UTC 63
21.78
GitHub Action Run
Source Files on build 24588315042
  • Tree
  • List 63
  • Changed 5
  • Source Changed 5
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24588315042
  • 43f7bdf2 on github
  • Prev Build on main (#24585183540)
  • Next Build on main (#24590073580)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc