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(); }