diff --git a/Source/RMG/UserInterface/MainWindow.cpp b/Source/RMG/UserInterface/MainWindow.cpp index 6303bed4d..efeee202c 100644 --- a/Source/RMG/UserInterface/MainWindow.cpp +++ b/Source/RMG/UserInterface/MainWindow.cpp @@ -973,8 +973,12 @@ void MainWindow::configureActions(void) { if (checked) { - int factor = speedAction->text().split("%").first().toInt(); - this->on_Action_System_SpeedFactor(factor); + QString factorText = speedAction->text().split("%").first(); + // sometimes the text can contain a '&' + // which will make the toInt() function return 0 + // so strip it out + factorText.remove('&'); + this->on_Action_System_SpeedFactor(factorText.toInt()); } }); }