summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-20 22:46:45 (UTC)
committer llornkcor <llornkcor>2002-10-20 22:46:45 (UTC)
commit9bbc3d997fca39d9ab53541376737b016007685b (patch) (side-by-side diff)
treeb641985f4fae111e71fd620a2864028c6820b934
parent7f4136df2e639ffa27c83422e4ccdf169ba71bad (diff)
downloadopie-9bbc3d997fca39d9ab53541376737b016007685b.zip
opie-9bbc3d997fca39d9ab53541376737b016007685b.tar.gz
opie-9bbc3d997fca39d9ab53541376737b016007685b.tar.bz2
remember user configurations
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
@@ -966,13 +966,22 @@ void TextEdit::doAbout() {
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);
}