Skip to content

Commit

Permalink
RMG: fix slotAction signal handler in MainWindow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed May 1, 2024
1 parent 1b4820c commit 4107ee5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/RMG/UserInterface/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,8 +995,12 @@ void MainWindow::configureActions(void)
{
if (checked)
{
int slot = slotAction->text().split(" ").at(1).toInt();
this->on_Action_System_CurrentSaveState(slot);
QString slotText = slotAction->text().split(" ").at(1);
// sometimes the text can contain a '&'
// which will make the toInt() function return 0
// so strip it out
slotText.remove('&');
this->on_Action_System_CurrentSaveState(slotText.toInt());
}
});
}
Expand Down

0 comments on commit 4107ee5

Please sign in to comment.