From 98bb73ffb74f17fa3ea1421d0340103a8dcba76c Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Mon, 22 Jun 2020 10:10:49 +0400 Subject: [PATCH] Do not use deprecated QTextStream::endl --- apps/wizard/mainwizard.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/wizard/mainwizard.cpp b/apps/wizard/mainwizard.cpp index 1353173f4..160c6f721 100644 --- a/apps/wizard/mainwizard.cpp +++ b/apps/wizard/mainwizard.cpp @@ -120,9 +120,10 @@ void Wizard::MainWizard::addLogText(const QString &text) QTextStream out(&file); if (!text.isEmpty()) - out << text << endl; - -// file.close(); + { + out << text << "\n"; + out.flush(); + } } void Wizard::MainWizard::setupGameSettings()