Skip to content

Commit

Permalink
Fix index provided when removing item from bootable list.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Dec 17, 2024
1 parent 484377e commit ee45053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ui_qt/QBootablesView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void QBootablesView::SetupActions(BootCallback bootCallback)
auto bootable = model->GetBootable(src_index);

BootablesDb::CClient::GetInstance().UnregisterBootable(bootable.path);
model->removeItem(index);
model->removeItem(src_index);
};
connect(removeAction, &QAction::triggered, removeGameCallback);
ui->listView->addAction(removeAction);
Expand Down

0 comments on commit ee45053

Please sign in to comment.