Commit 1da7d047 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: more robust port number parsing

Change-Id: I78edf9faa977af8a52e3e712b06ab14785af838a
Reviewed-on: http://codereview.qt-project.org/5465

Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 9d8eb1f9
......@@ -195,7 +195,7 @@ void StartGdbServerDialog::handleProcessErrorOutput(const QByteArray &ba)
// "Listening on port 10000"
int pos = ba.indexOf("Listening on port");
if (pos != -1) {
int port = ba.mid(pos + 18).toInt();
int port = ba.mid(pos + 18).trimmed().toInt();
d->ui.textBrowser->append(tr("Port %1 is now accessible.").arg(port));
emit portOpened(port);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment