Skip to content
Snippets Groups Projects
Commit b490f2ef authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlProfilerTool: Don't take empty lines as commands

Change-Id: I4e61eda39c165b175c097e38191ad74a46c64d53
Reviewed-on: http://codereview.qt.nokia.com/3499


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
parent 97e967c0
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,8 @@ void CommandListener::run()
QTextStream in(stdin, QIODevice::ReadOnly);
do {
line = in.readLine();
emit command(line);
line = line.trimmed();
if (!line.isEmpty())
emit command(line);
} while (!m_stopRequested && !line.isNull());
}
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