-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 | ||||
-rw-r--r-- | core/apps/textedit/textedit.h | 1 | ||||
-rw-r--r-- | core/apps/textedit/textedit.pro | 4 |
3 files changed, 10 insertions, 4 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"); @@ -421,2 +421,7 @@ TextEdit::~TextEdit() cfg.writeEntry( "FileView", viewSelection ); + +} + +TextEdit::~TextEdit() +{ } diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index aca2933..a70b581 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h @@ -73,2 +73,3 @@ private slots: bool saveAs(); + void cleanUp(); diff --git a/core/apps/textedit/textedit.pro b/core/apps/textedit/textedit.pro index 1301aed..37ddf15 100644 --- a/core/apps/textedit/textedit.pro +++ b/core/apps/textedit/textedit.pro @@ -13,3 +13,3 @@ TARGET = textedit -TRANSLATIONS = ../i18n/de/textedit.ts -TRANSLATIONS = ../i18n/pt_BR/textedit.ts +TRANSLATIONS += ../i18n/de/textedit.ts +TRANSLATIONS += ../i18n/pt_BR/textedit.ts |