Fix Linux build

Fix Linux build
This commit is contained in:
Andy Vandijck 2024-02-18 15:51:11 +01:00
parent b8fce760dd
commit 897849111c
1 changed files with 2 additions and 2 deletions

View File

@ -1715,7 +1715,7 @@ bool TasEditorWindow::saveProjectAs(bool save_compact)
std::string msg; std::string msg;
msg = "Pre-existing TAS project file will be overwritten:\n\n" + msg = "Pre-existing TAS project file will be overwritten:\n\n" +
std::string(fi.fileName().toLocal8Bit()) + "\n\nReplace file?"; (std::string)fi.fileName().toLocal8Bit() + "\n\nReplace file?";
ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"), ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"),
QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ); QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
@ -2551,7 +2551,7 @@ bool TasEditorWindow::saveCompactGetFilename( QString &outputFilePath )
std::string msg; std::string msg;
msg = "Pre-existing TAS project file will be overwritten:\n\n" + msg = "Pre-existing TAS project file will be overwritten:\n\n" +
std::string(fi.fileName().toLocal8Bit()) + "\n\nReplace file?"; (std::string)fi.fileName().toLocal8Bit() + "\n\nReplace file?";
ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"), ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"),
QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ); QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No );