X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fedit%2Feditor.cpp;h=2315c0e1f5d75b9b66b7e4f6bb409ce7622502a9;hb=HEAD;hp=ffdc94c9cfe89498d8448da2c341006d4d514d5b;hpb=384b67e0232e553151dfdc9caffd255c5f597d2b;p=vlp.git 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();