[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/kjots
From:       Stanislav Kljuhhin <crz () starman ! ee>
Date:       2003-10-25 12:36:25
[Download RAW message or body]

CVS commit by crzcrz: 

fix for bug 66525


  M +9 -1      kjotsentry.cpp   1.14


--- kdeutils/kjots/kjotsentry.cpp  #1.13:1.14
@@ -167,5 +167,7 @@ bool KJotsBook::openBook()
     QString body;
 
-    while (!st.eof())
+    bool quit=false;
+
+    while (1)
     {
         if (buf.left(9) == "\\NewEntry")
@@ -206,5 +208,11 @@ bool KJotsBook::openBook()
 
         body.append(buf + "\n");
+
+        if (quit)
+            break;
+
         buf = st.readLine();
+
+        quit = st.eof();
     }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic