From: Rafał Długołęcki Date: Tue, 2 Feb 2016 23:21:56 +0000 (+0100) Subject: Fix problem with partial loading of files X-Git-Tag: 3.4-b1~4 X-Git-Url: https://git.dlugolecki.net.pl/?p=vlp.git;a=commitdiff_plain;h=62d979015dc3c645a1b52a41a24adbc2dd471cb9;ds=sidebyside Fix problem with partial loading of files --- diff --git a/src/edit/editor.cpp b/src/edit/editor.cpp index ffdc94c..2315c0e 100644 --- a/src/edit/editor.cpp +++ b/src/edit/editor.cpp @@ -88,9 +88,10 @@ void Editor::load(const char *fileName) editor->clear(); QTextStream textStream(&file); - while (!file.atEnd()) { - editor->append(textStream.readLine()); - } + editor->append(textStream.readAll()); +// while (!file.atEnd()) { +// editor->append(textStream.readLine()); +// } file.close();