Fix Linux

Fix Linux build
This commit is contained in:
Andy Vandijck 2024-02-18 15:49:36 +01:00
parent 1227e9ebc0
commit b8fce760dd
1 changed files with 2 additions and 12 deletions

View File

@ -1714,13 +1714,8 @@ bool TasEditorWindow::saveProjectAs(bool save_compact)
int ret;
std::string msg;
#if defined(__linux__)
msg = "Pre-existing TAS project file will be overwritten:\n\n" +
fi.fileName().toLocal8Bit().constData() + "\n\nReplace file?";
#else
msg = "Pre-existing TAS project file will be overwritten:\n\n" +
fi.fileName().toLocal8Bit() + "\n\nReplace file?";
#endif
std::string(fi.fileName().toLocal8Bit()) + "\n\nReplace file?";
ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"),
QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No );
@ -2555,13 +2550,8 @@ bool TasEditorWindow::saveCompactGetFilename( QString &outputFilePath )
int ret;
std::string msg;
#ifdef __linux__
msg = "Pre-existing TAS project file will be overwritten:\n\n" +
fi.fileName().toLocal8Bit().constData() + "\n\nReplace file?";
#else
msg = "Pre-existing TAS project file will be overwritten:\n\n" +
fi.fileName().toLocal8Bit() + "\n\nReplace file?";
#endif
std::string(fi.fileName().toLocal8Bit()) + "\n\nReplace file?";
ret = QMessageBox::warning( this, QObject::tr("Overwrite Warning"),
QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No );