From 0783eb373b4c00ce1f943e41583c97b664fe29b8 Mon Sep 17 00:00:00 2001 From: Chris Bessent Date: Sun, 23 Jan 2022 08:41:54 -0700 Subject: Fix possible NPE when booting up --- src/pluginlistview.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pluginlistview.cpp') diff --git a/src/pluginlistview.cpp b/src/pluginlistview.cpp index e27d7e66..6e0e8f93 100644 --- a/src/pluginlistview.cpp +++ b/src/pluginlistview.cpp @@ -305,8 +305,7 @@ bool PluginListView::toggleSelectionState() bool PluginListView::event(QEvent* event) { - auto* profile = m_core->currentProfile(); - if (event->type() == QEvent::KeyPress && profile) { + if (event->type() == QEvent::KeyPress) { QKeyEvent* keyEvent = static_cast(event); if (keyEvent->modifiers() == Qt::ControlModifier -- cgit v1.3.1