Skip to content

Commit

Permalink
Fix windows and linux build on qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed Nov 11, 2024
1 parent d4a2aa5 commit 293ffad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 293ffad

Please sign in to comment.