Fix a crash opening performance counter viewer with capture open

This commit is contained in:
baldurk committed 2021-11-24 14:11:42 +00:00
1 parent 62babcb497
commit eb18acf224
1 file changed
+2 -2
@@ -285,8 +285,6 @@ PerformanceCounterViewer::PerformanceCounterViewer(ICaptureContext &ctx, QWidget
{
ui->setupUi(this);
m_Ctx.AddCaptureViewer(this);
connect(ui->captureCounters, &QToolButton::clicked, this,
&PerformanceCounterViewer::CaptureCounters);
@@ -306,6 +304,8 @@ PerformanceCounterViewer::PerformanceCounterViewer(ICaptureContext &ctx, QWidget
ui->counterResults->setSortingEnabled(true);
ui->counterResults->sortByColumn(0, Qt::AscendingOrder);
m_Ctx.AddCaptureViewer(this);
}
PerformanceCounterViewer::~PerformanceCounterViewer()