Commit 7985b518 authored by Christian Stenger's avatar Christian Stenger

Valgrind: Avoid soft assert when no project is opened

Change-Id: I3ff8a3dbc3b6115824477e307c03d9a2c0d19285
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent 102135a7
......@@ -399,9 +399,8 @@ void CallgrindToolPrivate::updateCostFormat()
void CallgrindToolPrivate::handleFilterProjectCosts()
{
Project *pro = ProjectTree::currentProject();
QTC_ASSERT(pro, return);
if (m_filterProjectCosts->isChecked()) {
if (pro && m_filterProjectCosts->isChecked()) {
const QString projectDir = pro->projectDirectory().toString();
m_proxyModel->setFilterBaseDir(projectDir);
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment