Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Kigo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Games
Kigo
Commits
ea4d2e07
Commit
ea4d2e07
authored
May 04, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/release/20.04'
parents
d5730a17
2ce84e64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/game/game.cpp
src/game/game.cpp
+8
-0
No files found.
src/game/game.cpp
View file @
ea4d2e07
...
...
@@ -69,7 +69,15 @@ Game::~Game()
bool
Game
::
start
(
const
QString
&
command
)
{
stop
();
// Close old session if there's one
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
QStringList
splitArguments
=
QProcess
::
splitCommand
(
command
);
if
(
!
splitArguments
.
isEmpty
())
{
const
QString
prog
=
splitArguments
.
takeFirst
();
m_process
.
start
(
prog
,
splitArguments
);
}
#else
m_process
.
start
(
command
,
QStringList
());
// Start new process with provided command
#endif
if
(
!
m_process
.
waitForStarted
())
{
// Blocking wait for process start
m_response
=
QLatin1String
(
"Unable to execute command: "
)
+
command
;
//qCDebug(KIGO_LOG) << m_response;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment