diff options
Diffstat (limited to 'libtdepim')
-rw-r--r-- | libtdepim/categoryeditdialog.cpp | 4 | ||||
-rw-r--r-- | libtdepim/categoryselectdialog.cpp | 3 | ||||
-rw-r--r-- | libtdepim/kpimprefs.cpp | 2 | ||||
-rw-r--r-- | libtdepim/kpimprefs.h | 3 |
4 files changed, 10 insertions, 2 deletions
diff --git a/libtdepim/categoryeditdialog.cpp b/libtdepim/categoryeditdialog.cpp index 26abbc070..f4dc38c22 100644 --- a/libtdepim/categoryeditdialog.cpp +++ b/libtdepim/categoryeditdialog.cpp @@ -29,6 +29,7 @@ #include <tdelocale.h> #include "kpimprefs.h" +#include "categoryselectdialog.h" #include "categoryeditdialog.h" @@ -177,6 +178,9 @@ void CategoryEditDialog::slotApply() mPrefs->writeConfig(); emit categoryConfigChanged(); + + if(dynamic_cast<CategorySelectDialog*>(mPrefs->toNotify)) + ((CategorySelectDialog*)mPrefs->toNotify)->updateCategoryConfig(); } void CategoryEditDialog::slotCancel() diff --git a/libtdepim/categoryselectdialog.cpp b/libtdepim/categoryselectdialog.cpp index cf1b2ac6d..b4d9060d7 100644 --- a/libtdepim/categoryselectdialog.cpp +++ b/libtdepim/categoryselectdialog.cpp @@ -48,6 +48,8 @@ CategorySelectDialog::CategorySelectDialog( KPimPrefs *prefs, TQWidget* parent, TQT_SIGNAL(editCategories()) ); connect( mWidget->mButtonClear, TQT_SIGNAL(clicked()), TQT_SLOT(clear()) ); + + mPrefs->toNotify = this; } void CategorySelectDialog::setCategories( const TQStringList &categoryList ) @@ -69,6 +71,7 @@ void CategorySelectDialog::setCategories( const TQStringList &categoryList ) CategorySelectDialog::~CategorySelectDialog() { + mPrefs->toNotify = NULL; } void CategorySelectDialog::setSelected(const TQStringList &selList) diff --git a/libtdepim/kpimprefs.cpp b/libtdepim/kpimprefs.cpp index d58ca447e..933bd98df 100644 --- a/libtdepim/kpimprefs.cpp +++ b/libtdepim/kpimprefs.cpp @@ -36,7 +36,7 @@ #include "kpimprefs.h" KPimPrefs::KPimPrefs( const TQString &name ) - : TDEConfigSkeleton( name ) + : TDEConfigSkeleton( name ), toNotify(NULL) { } diff --git a/libtdepim/kpimprefs.h b/libtdepim/kpimprefs.h index b67d24916..b3346dad4 100644 --- a/libtdepim/kpimprefs.h +++ b/libtdepim/kpimprefs.h @@ -78,7 +78,8 @@ class KDE_EXPORT KPimPrefs : public TDEConfigSkeleton public: TQStringList mCustomCategories; - + TQObject *toNotify; + protected: virtual void setCategoryDefaults() {} }; |