mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Fix Segfault on Theme Editor Preview Click
This commit is contained in:
parent
1d1e2af9c3
commit
b866e16b26
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user