diff --git a/Source/Core/DolphinQt2/Config/PatchesWidget.cpp b/Source/Core/DolphinQt2/Config/PatchesWidget.cpp index b0af60eb36..99a99d0901 100644 --- a/Source/Core/DolphinQt2/Config/PatchesWidget.cpp +++ b/Source/Core/DolphinQt2/Config/PatchesWidget.cpp @@ -169,7 +169,8 @@ void PatchesWidget::Update() void PatchesWidget::UpdateActions() { bool selected = !m_list->selectedItems().isEmpty(); - auto* item = m_list->selectedItems()[0]; + + auto* item = selected ? m_list->selectedItems()[0] : nullptr; bool user_defined = selected ? item->data(Qt::UserRole).toBool() : true;