From 293ffad7c7d1aeb680fb758dcd4852708a5fa399 Mon Sep 17 00:00:00 2001 From: Pedro Beirao Date: Mon, 11 Nov 2024 21:09:02 +0000 Subject: [PATCH] Fix windows and linux build on qt5 --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index e1530e3..3d9e8b1 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -632,7 +632,7 @@ void MainWindow::Launch(QStringList arguments) } #elif defined Q_OS_LINUX QString gamePath = getGamePath(); - QFile port = QFile(getGamePath()); + QFile port(getGamePath()); if (port.exists()) { QString homePath = QStandardPaths::writableLocation(QStandardPaths::HomeLocation); @@ -651,7 +651,7 @@ void MainWindow::Launch(QStringList arguments) } #else QString gamePath = getGamePath(); - QFile port = QFile(getGamePath(); + QFile port(getGamePath()); if (port.exists()) { QProcess *process = new QProcess;