On 2012-08-11 05:22, Rolf Eike Beer wrote
And after the readLine() you have valid input? And you are sure your new
branch is taken?
Eike
It seems it is the block parameter that makes all the difference:
Test::Test(biol block) {
QByteArray line;
QList<QByteArray> args;
args += "2012";
KDESu::PtyProcess::exec("cal", args);
readAll(block);
line = readLine();
if (line.isEmpty())
printf("empty");
else
printf("data");
}
void foo() {
Test *test;
test = new Test(true);
test = new Test(false);
}
gives "empty data".
Best regards,
Michael