aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/knowit/files/patch-knowit-notes.cpp
blob: f8605992f340640125f9014fb77030c5bb68958f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- knowit/notes.cpp.orig   Sun Dec  8 01:24:02 2002
+++ knowit/notes.cpp    Sun Dec  8 01:50:11 2002
@@ -80,12 +80,13 @@
 bool TNotesCollection::changeNote(QListViewItem* item, const QString& s)
 {
    TNote* changed = find(item);
-   if (!changed) qWarning("Internal error: change note\n");
-   else {
-      bool change = changed->change(s);
-      modified = modified or change;
-      return change;
-      }
+   if (!changed) {
+     qWarning("Internal error: change note\n");
+     return false;
+   }
+   if (changed->change(s)) {
+     return modified = true;
+   }
    return false;
 }