From c4b2be45d29a247422e60bb8fdf1664c10384eee Mon Sep 17 00:00:00 2001 From: Jeremy Rimpo Date: Mon, 6 Dec 2021 03:51:08 -0600 Subject: First pass for Qt6 compatibility --- src/spawn.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/spawn.cpp') diff --git a/src/spawn.cpp b/src/spawn.cpp index fbd4c286..cc8f47bb 100644 --- a/src/spawn.cpp +++ b/src/spawn.cpp @@ -252,7 +252,7 @@ void helperFailed( const std::wstring& cwd, const std::wstring& args) { SpawnParameters sp; - sp.binary = QString::fromStdWString(binary); + sp.binary = QFileInfo(QString::fromStdWString(binary)); sp.currentDirectory.setPath(QString::fromStdWString(cwd)); sp.arguments = QString::fromStdWString(args); @@ -620,7 +620,7 @@ bool startSteam(QWidget* parent) } SpawnParameters sp; - sp.binary = exe; + sp.binary = QFileInfo(exe); // See if username and password supplied. If so, pass them into steam. QString username, password; @@ -911,7 +911,7 @@ QFileInfo getCmdPath() { const auto p = env::get("COMSPEC"); if (!p.isEmpty()) { - return p; + return QFileInfo(p); } QString systemDirectory; @@ -930,7 +930,7 @@ QFileInfo getCmdPath() systemDirectory = "C:\\Windows\\System32\\"; } - return systemDirectory + "cmd.exe"; + return QFileInfo(systemDirectory + "cmd.exe"); } FileExecutionTypes getFileExecutionType(const QFileInfo& target) -- cgit v1.3.1