# fix\(panel\): keep quota lane combo following external changes \(\#264\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/b52bf5f4ddc8cc757c528cf7b50d16e0a4a6db69)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: b52bf5f4ddc8cc757c528cf7b50d16e0a4a6db69

Requested commit: b52bf5f4ddc8cc757c528cf7b50d16e0a4a6db69

Commit: b52bf5f4ddc8cc757c528cf7b50d16e0a4a6db69

Tree: b563c7e5f4d2337b5060ad9d49a326dc40536b28

Author: Simone

Committer: GitHub

## Message

```
fix(panel): keep quota lane combo following external changes (#264)

* fix(panel): keep quota lane combo following external changes

An interactive pick severs the combo's declarative currentIndex binding,
so panelQuotaCombo stopped reflecting external cfg_panelQuotaLane changes
such as the restore-defaults action on the General page of the same
configuration dialog. Its sibling combos guard this with page-level
onCfg_*Changed sync handlers; give the quota lane combo the same handler
and a shared quotaLaneIndex helper, and pin the behavior in
tst_panel_style_settings.

* test(panel): simulate the pick by writing currentIndex before activated

ComboBox has no activate() invokable; reproduce the interactive pick the
way Qt performs it: an imperative currentIndex write that severs the
declarative binding, followed by the activated signal. Verified against
a plain-QtQuick ComboBox harness reproducing both the unfixed and fixed
behavior.
```

## Parents

- [083e84fb1731b3d89f23932b52546b99f8dab425](https://git.cafe/lucenx/codexbar-plasma/commit/083e84fb1731b3d89f23932b52546b99f8dab425?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/b52bf5f4ddc8cc757c528cf7b50d16e0a4a6db69?format=markdown)
