summaryrefslogtreecommitdiff
path: root/src/pluginlistview.cpp
diff options
context:
space:
mode:
authorChris Bessent <lost.dragonist@gmail.com>2022-01-23 08:41:54 -0700
committerChris Bessent <lost.dragonist@gmail.com>2022-01-23 11:11:22 -0700
commit0783eb373b4c00ce1f943e41583c97b664fe29b8 (patch)
treee75e4cd90230b02e532295eccf5c1b439032e31c /src/pluginlistview.cpp
parentfeb411fb2a320284cb01ee9f5ca13baf105c1f29 (diff)
Fix possible NPE when booting up
Diffstat (limited to 'src/pluginlistview.cpp')
-rw-r--r--src/pluginlistview.cpp3
1 files changed, 1 insertions, 2 deletions
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<QKeyEvent*>(event);
if (keyEvent->modifiers() == Qt::ControlModifier