Fix segfault when adding new graph widget (#592)

This commit is contained in:
fcasal 2018-07-24 08:02:35 +01:00 committed by xarkes
parent afd6c2fd67
commit 390f30b124

View File

@ -173,7 +173,7 @@ void DisassemblerGraphView::loadCurrentGraph()
layout->setAlignment(emptyText, Qt::AlignHCenter);
}
emptyText->setVisible(true);
} else {
} else if (emptyText) {
emptyText->setVisible(false);
}