summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 209c5de..f38ea53 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -962,21 +962,30 @@ void TextEdit::doAbout() {
"2000 Trolltech AS, and<BR>"
"2002 by <B>L. J. Potter <BR>llornkcor@handhelds.org</B><BR>"
"and is licensed under the GPL"));
}
void TextEdit::doPrompt(bool b) {
- promptExit=b;
+ promptExit=b;
+ Config cfg("TextEdit");
+ cfg.setGroup ( "View" );
+ cfg.writeEntry ( "PromptExit", b);
}
void TextEdit::doDesktop(bool b) {
- openDesktop=b;
+ openDesktop=b;
+ Config cfg("TextEdit");
+ cfg.setGroup ( "View" );
+ cfg.writeEntry ( "OpenDesktop", b);
}
void TextEdit::doFilePerms(bool b) {
- filePerms=b;
+ filePerms=b;
+ Config cfg("TextEdit");
+ cfg.setGroup ( "View" );
+ cfg.writeEntry ( "FilePermissions", b);
}
void TextEdit::editPasteTimeDate() {
#ifndef QT_NO_CLIPBOARD
QClipboard *cb = QApplication::clipboard();
QDateTime dt = QDateTime::currentDateTime();