Add capture routing rules (source → app) to complement playback rules
This commit is contained in:
parent
621d67ebab
commit
242d0ec09f
6 changed files with 418 additions and 78 deletions
|
|
@ -317,10 +317,10 @@ bool acceptRuleDialog(const QString &appName, const QString &targetNodeName) {
|
|||
}
|
||||
|
||||
auto combos = dialog->findChildren<QComboBox *>();
|
||||
if (!combos.isEmpty()) {
|
||||
int idx = combos[0]->findData(targetNodeName);
|
||||
if (combos.size() >= 2) {
|
||||
int idx = combos[1]->findData(targetNodeName);
|
||||
if (idx >= 0) {
|
||||
combos[0]->setCurrentIndex(idx);
|
||||
combos[1]->setCurrentIndex(idx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue