dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
vlp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c03137
)
Fix problem with partial loading of files
author
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Tue, 2 Feb 2016 23:21:56 +0000
(
00:21
+0100)
committer
Rafał Długołęcki
<rafal@dlugolecki.net.pl>
Tue, 2 Feb 2016 23:21:56 +0000
(
00:21
+0100)
src/edit/editor.cpp
patch
|
blob
|
history
diff --git
a/src/edit/editor.cpp
b/src/edit/editor.cpp
index ffdc94c9cfe89498d8448da2c341006d4d514d5b..2315c0e1f5d75b9b66b7e4f6bb409ce7622502a9 100644
(file)
--- 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();