diff options
Diffstat (limited to 'src/directorylist.cpp')
-rw-r--r-- | src/directorylist.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/directorylist.cpp b/src/directorylist.cpp index c4ff438..8e8bf76 100644 --- a/src/directorylist.cpp +++ b/src/directorylist.cpp @@ -20,6 +20,8 @@ #include <tqtooltip.h> #include <tqdir.h> +#include <tdeconfig.h> +#include <tdeglobal.h> #include <tdemessagebox.h> #include <tdefileitem.h> #include <tdelocale.h> @@ -528,4 +530,12 @@ TQStringList CollectionSetup::pruneSelectedDirs(){ return filepattern; } +void CollectionSetup::writeConfig( const char* optGroup, const char* optName ) +{ + TDEConfig *config = TDEGlobal::config(); + config->setGroup( optGroup ); + config->writeEntry( optName, dirs() ); + config->sync(); +} + #include "directorylist.moc" |