Skip to content
Snippets Groups Projects
Commit 4a5137e0 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

more elegant

parent 26a77e1e
No related branches found
No related tags found
No related merge requests found
......@@ -1583,9 +1583,7 @@ bool GdbEngine::startDebugger()
q->showStatusMessage(tr("Starting Debugger: ") + q->settings()->m_gdbCmd + ' ' + gdbArgs.join(" "));
m_gdbProc.start(q->settings()->m_gdbCmd, gdbArgs);
m_gdbProc.waitForStarted();
if (m_gdbProc.state() != QProcess::Running) {
if (!m_gdbProc.waitForStarted()) {
QMessageBox::critical(q->mainWindow(), tr("Debugger Startup Failure"),
tr("Cannot start debugger: %1").arg(m_gdbProc.errorString()));
m_outputCollector.shutdown();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment