Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index d3f5fb4..f56d5d3 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -238,2 +238,3 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) setToolBarsMovable( FALSE ); + connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); @@ -409,6 +410,5 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) -TextEdit::~TextEdit() +void TextEdit::cleanUp() { // save(); - Config cfg("TextEdit"); @@ -420,3 +420,8 @@ TextEdit::~TextEdit() cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth); - cfg.writeEntry( "FileView", viewSelection ); + cfg.writeEntry( "FileView", viewSelection ); + +} + +TextEdit::~TextEdit() +{ } |