summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/directorylist.cpp10
-rw-r--r--src/directorylist.h1
2 files changed, 11 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"
diff --git a/src/directorylist.h b/src/directorylist.h
index c1820c8..0c84988 100644
--- a/src/directorylist.h
+++ b/src/directorylist.h
@@ -49,6 +49,7 @@ public:
TQMap<TQString,int> m_refcount;
TQStringList pruneSelectedDirs();
+ void writeConfig( const char* optGroup, const char* optName );
signals:
void dirsSelected(TQStringList& dirs);