From 62d979015dc3c645a1b52a41a24adbc2dd471cb9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Wed, 3 Feb 2016 00:21:56 +0100 Subject: [PATCH] Fix problem with partial loading of files --- src/edit/editor.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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(); -- 2.30.2