From 34387c74b1b5a42c91e371c8521bdea7f3796830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 14 Apr 2019 14:03:54 +0200 Subject: [PATCH] Fix Segfault with Extra Widgets --- src/widgets/MemoryDockWidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/MemoryDockWidget.cpp b/src/widgets/MemoryDockWidget.cpp index 0556da63..84495643 100644 --- a/src/widgets/MemoryDockWidget.cpp +++ b/src/widgets/MemoryDockWidget.cpp @@ -17,7 +17,9 @@ void MemoryDockWidget::handleRaiseMemoryWidget(CutterCore::MemoryWidgetType rais } if (raiseType == mType) { - getBoundAction()->setChecked(true); + if (getBoundAction()) { + getBoundAction()->setChecked(true); + } show(); raise();