Skip to content

Commit

Permalink
Fix KDE file selection (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
loganmc10 authored Jun 19, 2024
1 parent 2e6fb1e commit 6836b0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent),
connect(temp_slot, &QAction::triggered, [=](bool checked)
{
if (checked) {
int slot = temp_slot->text().remove("Slot ").toInt();
(*CoreDoCommand)(M64CMD_STATE_SET_SLOT, slot, NULL);
(*CoreDoCommand)(M64CMD_STATE_SET_SLOT, i, NULL);
} });
}

Expand Down Expand Up @@ -579,7 +578,7 @@ void MainWindow::updateOpenRecent()
OpenRecent->addAction(recent[i]);
QAction *temp_recent = recent[i];
connect(temp_recent, &QAction::triggered, [=]()
{ openROM(temp_recent->text(), "", 0, 0, QJsonObject()); });
{ openROM(list.at(i), "", 0, 0, QJsonObject()); });
}
OpenRecent->addSeparator();

Expand Down
2 changes: 1 addition & 1 deletion netplay/createroom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ void CreateRoom::handleCreateButton()
msgBox.exec();
return;
}
if (loadROM(romButton->text()) == M64ERR_SUCCESS)
if (loadROM(filename) == M64ERR_SUCCESS)
{
createButton->setEnabled(false);
(*CoreDoCommand)(M64CMD_ROM_GET_SETTINGS, sizeof(rom_settings), &rom_settings);
Expand Down

0 comments on commit 6836b0d

Please sign in to comment.