Merge pull request #2095 from lemondrops/master

Fix a compile-breaking typo in qt_progsettings.c
This commit is contained in:
David Hrdlička
2022-02-10 16:09:49 +01:00
committed by GitHub

View File

@@ -122,7 +122,7 @@ void ProgSettings::accept()
update_mouse_msg(); update_mouse_msg();
main_window->ui->retranslateUi(main_window); main_window->ui->retranslateUi(main_window);
QString vmname(vm_name); QString vmname(vm_name);
if (vmname.at(vmnames.size() - 1) == "\"" || vmname.at(vmnames.size() - 1) == "'") vmname.truncate(vmname.size() - 1); if (vmname.at(vmname.size() - 1) == "\"" || vmname.at(vmname.size() - 1) == "'") vmname.truncate(vmname.size() - 1);
main_window->setWindowTitle(QString("%1 - %2 %3").arg(vmname, EMU_NAME, EMU_VERSION_FULL)); main_window->setWindowTitle(QString("%1 - %2 %3").arg(vmname, EMU_NAME, EMU_VERSION_FULL));
QString msg = main_window->status->getMessage(); QString msg = main_window->status->getMessage();
main_window->status.reset(new MachineStatus(main_window)); main_window->status.reset(new MachineStatus(main_window));