diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-05-24 09:01:00 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-24 12:47:26 +0000 |
commit | 8c018aec6b6563784229452fe29a27764b070e34 (patch) | |
tree | f6f5724b28e956ff4bb846339ae93f6cc997766d | |
parent | 051bc19f7d71a65fd31dde12f71a68ee1393f89c (diff) | |
download | qttools-8c018aec6b6563784229452fe29a27764b070e34.tar.gz |
Flush wcout before exiting the app
Apparently not flushing caused the output to be truncated on
some windows machines when redirecting to a file.
Task-number: QTBUG-67860
Change-Id: I82a49286114dcb4dd1f264153363999ec81edd6f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | src/qtdiag/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qtdiag/main.cpp b/src/qtdiag/main.cpp index 2f5e2e9ee..de56d7201 100644 --- a/src/qtdiag/main.cpp +++ b/src/qtdiag/main.cpp @@ -66,5 +66,6 @@ int main(int argc, char **argv) flags |= QtDiagVk; std::wcout << qtDiag(flags).toStdWString(); + std::wcout.flush(); return 0; } |