From 390f30b1249584106e247b2b21256d943663aceb Mon Sep 17 00:00:00 2001 From: fcasal Date: Tue, 24 Jul 2018 08:02:35 +0100 Subject: [PATCH] Fix segfault when adding new graph widget (#592) --- src/widgets/DisassemblerGraphView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index e93370a8..ad061fa3 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -173,7 +173,7 @@ void DisassemblerGraphView::loadCurrentGraph() layout->setAlignment(emptyText, Qt::AlignHCenter); } emptyText->setVisible(true); - } else { + } else if (emptyText) { emptyText->setVisible(false); }