diff --git a/src/resultsbottomuppage.cpp b/src/resultsbottomuppage.cpp index 8f89c136..bf60671c 100644 --- a/src/resultsbottomuppage.cpp +++ b/src/resultsbottomuppage.cpp @@ -68,7 +68,8 @@ ResultsBottomUpPage::ResultsBottomUpPage(FilterAndZoomStack* filterStack, PerfPa ResultsUtil::setupCostDelegate(m_model, ui->bottomUpTreeView); ResultsUtil::setupContextMenu(ui->bottomUpTreeView, contextMenu, m_model, filterStack, this); - connect(parser, &PerfParser::bottomUpDataAvailable, this, &ResultsBottomUpPage::setBottomUpResults); + if (parser) + connect(parser, &PerfParser::bottomUpDataAvailable, this, &ResultsBottomUpPage::setBottomUpResults); ResultsUtil::setupResultsAggregation(ui->costAggregationComboBox); } diff --git a/src/resultspagediff.cpp b/src/resultspagediff.cpp index 9965e9da..a8da5e17 100644 --- a/src/resultspagediff.cpp +++ b/src/resultspagediff.cpp @@ -47,7 +47,7 @@ ResultsPageDiff::ResultsPageDiff(QWidget* parent) , m_exportMenu(new QMenu(tr("Export"), this)) , m_resultsBottomUpPage( new ResultsBottomUpPage(m_filterAndZoomStack, nullptr, m_costContextMenu, m_exportMenu, this)) - , m_resultsTopDownPage(new ResultsTopDownPage(m_filterAndZoomStack, m_fileA, m_costContextMenu, this)) + , m_resultsTopDownPage(new ResultsTopDownPage(m_filterAndZoomStack, nullptr, m_costContextMenu, this)) , m_resultsFlameGraphPage(new ResultsFlameGraphPage(m_filterAndZoomStack, m_fileA, m_exportMenu, this)) , m_resultsCallerCalleePage(new ResultsCallerCalleePage(m_filterAndZoomStack, m_fileA, m_costContextMenu, this)) , m_timeLineWidget(new TimeLineWidget(m_fileA, m_filterMenu, m_filterAndZoomStack, this)) diff --git a/src/resultstopdownpage.cpp b/src/resultstopdownpage.cpp index 6008e3e8..6782b3d8 100644 --- a/src/resultstopdownpage.cpp +++ b/src/resultstopdownpage.cpp @@ -28,7 +28,8 @@ ResultsTopDownPage::ResultsTopDownPage(FilterAndZoomStack* filterStack, PerfPars ResultsUtil::setupCostDelegate(m_model, ui->topDownTreeView); ResultsUtil::setupContextMenu(ui->topDownTreeView, contextMenu, m_model, filterStack, this); - connect(parser, &PerfParser::topDownDataAvailable, this, &ResultsTopDownPage::setTopDownResults); + if (parser) + connect(parser, &PerfParser::topDownDataAvailable, this, &ResultsTopDownPage::setTopDownResults); ResultsUtil::setupResultsAggregation(ui->costAggregationComboBox); }