Really flush output buffers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-05-15 09:20:59 +00:00
parent 986db7cae1
commit a5a05e7dfc

View File

@ -158,7 +158,17 @@ ConOut::ConOut(QProcess * proc) : proc_(proc), outindex_(0), errindex_(0),
ConOut::~ConOut() ConOut::~ConOut()
{ {
if (outindex_) {
outdata_[outindex_] = '\0';
outindex_ = 0;
cout << outdata_;
}
cout.flush(); cout.flush();
if (errindex_) {
errdata_[errindex_] = '\0';
errindex_ = 0;
cerr << errdata_;
}
cerr.flush(); cerr.flush();
} }