From 263d9ccaf63d4269c08939d42a917c6b1a7de68c Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 5 Jun 2020 10:41:49 -0400 Subject: [PATCH] Fixed #339: flushed text buffers on file save for logbook. --- logbook/adif.cpp | 1 + logqso.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/logbook/adif.cpp b/logbook/adif.cpp index 824d072..9abd248 100644 --- a/logbook/adif.cpp +++ b/logbook/adif.cpp @@ -393,6 +393,7 @@ bool ADIF::addQSOToFile(QByteArray const& ADIF_record) out << "JS8Call ADIF Export" << endl; // new file out << ADIF_record << " " << endl; + out.flush(); f2.close(); } return true; diff --git a/logqso.cpp b/logqso.cpp index 68bd1f1..34d78ac 100644 --- a/logqso.cpp +++ b/logqso.cpp @@ -317,6 +317,7 @@ void LogQSO::accept() QTextStream out(&f); out << logEntryItems.join(",") << endl; + out.flush(); f.close(); }