Fix Linux build

Fix Linux build
This commit is contained in:
Andy Vandijck 2024-02-18 15:52:24 +01:00
parent 897849111c
commit 2e18434959
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 );