Skip to content

Commit

Permalink
RMG: fix unneeded argument for ->addAction()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed May 1, 2024
1 parent 256d1c5 commit cc39872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ void RomBrowserWidget::generateStateMenu(void)
saveStateSlotText = "Slot " + QString::number(i) + " - ";
saveStateSlotText += saveStateFileInfo.lastModified().toString("dd/MM/yyyy hh:mm");

QAction* slotAction = this->menu_PlayGameWithSlot->addAction(saveStateSlotText, QKeySequence());
QAction* slotAction = this->menu_PlayGameWithSlot->addAction(saveStateSlotText);
connect(slotAction, &QAction::triggered, [=, this]()
{
QString slotText = slotAction->text().split(" ").at(1);
Expand Down

0 comments on commit cc39872

Please sign in to comment.