+
+void NoteDialog::accept(void)
+{
+ // Call base class version, so things work right
+ QDialog::accept();
+
+ // Add note to DB for this user
+ QString noteText = note->document()->toPlainText();
+
+ if (noteText.isEmpty())
+ return;
+
+ QSqlQuery query;
+ query.prepare("INSERT INTO Notes VALUES ('', ?, NULL, ?)");
+ query.addBindValue(uid);
+// query.addBindValue(NULL);
+ query.addBindValue(noteText.toAscii());
+ query.exec();
+}
+