mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
Normalized handling of leading/trailing whitespace in sample app (refs #22)
This commit is contained in:
@@ -12,7 +12,7 @@ void LineReader::run()
|
||||
file.open(stdin, QIODevice::ReadOnly | QIODevice::Text);
|
||||
forever
|
||||
{
|
||||
QString line = file.readLine();
|
||||
QString line = file.readLine().trimmed();
|
||||
if (! line.isEmpty())
|
||||
{
|
||||
emit command(line);
|
||||
|
||||
Reference in New Issue
Block a user