From f97a1746e9bf6a3ead4df039194f9a30717c32a4 Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 26 Jul 2019 22:43:06 +0200 Subject: [PATCH] Qt: Fixed behaviour of some buttons Several buttons had functors connected to wrong signals, which resulted in incosistent UI behaviour. --- .../Windows/Dialogs/PerformanceCounterSelection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qrenderdoc/Windows/Dialogs/PerformanceCounterSelection.cpp b/qrenderdoc/Windows/Dialogs/PerformanceCounterSelection.cpp index efe166be5..f4c04c7e7 100644 --- a/qrenderdoc/Windows/Dialogs/PerformanceCounterSelection.cpp +++ b/qrenderdoc/Windows/Dialogs/PerformanceCounterSelection.cpp @@ -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);