Qt: Fixed behaviour of some buttons

Several buttons had functors connected to wrong signals,
which resulted in incosistent UI behaviour.
This commit is contained in:
Silent
2019-07-26 22:43:06 +02:00
committed by Baldur Karlsson
parent f82cce065d
commit f97a1746e9
@@ -176,10 +176,10 @@ PerformanceCounterSelection::PerformanceCounterSelection(ICaptureContext &ctx,
}
});
connect(ui->save, &QPushButton::pressed, this, &PerformanceCounterSelection::Save);
connect(ui->load, &QPushButton::pressed, this, &PerformanceCounterSelection::Load);
connect(ui->sampleCounters, &QPushButton::pressed, this, &PerformanceCounterSelection::accept);
connect(ui->cancel, &QPushButton::pressed, this, &PerformanceCounterSelection::reject);
connect(ui->save, &QPushButton::clicked, this, &PerformanceCounterSelection::Save);
connect(ui->load, &QPushButton::clicked, this, &PerformanceCounterSelection::Load);
connect(ui->sampleCounters, &QPushButton::clicked, this, &PerformanceCounterSelection::accept);
connect(ui->cancel, &QPushButton::clicked, this, &PerformanceCounterSelection::reject);
connect(ui->counterTree, &RDTreeWidget::itemChanged, [this](RDTreeWidgetItem *item, int) -> void {
const QVariant d = item->data(0, CounterIdRole);