[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdevplatform/plugins/execute
From:       Hamish Rodda <rodda () kde ! org>
Date:       2008-06-26 5:53:36
Message-ID: 1214459616.291480.3035.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 824555 by rodda:

Append newline to output so that the output is as expected for the output view, and \
the last normal character doesn't get chopped off.

 M  +1 -1      executeplugin.cpp  


--- trunk/KDE/kdevplatform/plugins/execute/executeplugin.cpp #824554:824555
@@ -113,7 +113,7 @@
     KJob* job = static_cast<KJob*>(qvariant_cast<void*>(process->property("job")));
 
     while (process->canReadLine()) {
-        QByteArray line = process->readLine();
+        QByteArray line = process->readLine() + '\n';
         QString string = QString::fromLocal8Bit(line, line.length() - 2);
         emit output(job, string, channel == QProcess::StandardOutput ? \
IRunProvider::StandardOutput : IRunProvider::StandardError);  }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic