From 897849111cf6d51f7d27badfa8bcfe23eeb7b68d Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Sun, 18 Feb 2024 15:51:11 +0100 Subject: [PATCH] Fix Linux build Fix Linux build --- src/drivers/Qt/TasEditor/TasEditorWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index 17b30083..1df5b0c0 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -1715,7 +1715,7 @@ bool TasEditorWindow::saveProjectAs(bool save_compact) std::string msg; 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"), QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No ); @@ -2551,7 +2551,7 @@ bool TasEditorWindow::saveCompactGetFilename( QString &outputFilePath ) std::string msg; 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"), QString::fromStdString(msg), QMessageBox::Yes | QMessageBox::No, QMessageBox::No );