Fix Segfault on Theme Editor Preview Click

This commit is contained in:
Florian Märkl 2019-09-09 15:18:30 +02:00
parent 1d1e2af9c3
commit b866e16b26

View File

@ -42,7 +42,7 @@ void MemoryDockWidget::raiseMemoryWidget()
bool MemoryDockWidget::eventFilter(QObject *object, QEvent *event) bool MemoryDockWidget::eventFilter(QObject *object, QEvent *event)
{ {
if (event->type() == QEvent::FocusIn) { if (mainWindow && event->type() == QEvent::FocusIn) {
mainWindow->setCurrentMemoryWidget(this); mainWindow->setCurrentMemoryWidget(this);
} }
return CutterDockWidget::eventFilter(object, event); return CutterDockWidget::eventFilter(object, event);