mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user