From b43a934bb7abd7af1ab279b5bc6193052f597df5 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Tue, 16 Mar 2021 10:20:22 +0200 Subject: Klamscan, Scheduler: Reset DirectoryList after use Signed-off-by: Mavridis Philippe (cherry picked from commit 69817f0eae3ed0e420a7d0e58c29953dd65dda97) --- src/directorylist.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/directorylist.h') diff --git a/src/directorylist.h b/src/directorylist.h index 79f3b9c..aebbeec 100644 --- a/src/directorylist.h +++ b/src/directorylist.h @@ -48,9 +48,11 @@ public: static TQStringList pruneSelectedDirs( TQStringList listOfUrls = 0 ); void writeConfig( const char* optGroup, const char* optName ); + void reset(); signals: void dirsSelected(TQStringList& dirs); + void resetDirs(); public slots: @@ -85,6 +87,7 @@ public: public slots: void newItems( const KFileItemList& ); void completed() { if( childCount() == 0 ) { setExpandable( false ); repaint(); } } + void reset(); private: CollectionSetup *collectionSetup; @@ -113,6 +116,7 @@ class DeviceItem : public TQObject, public TQCheckListItem public slots: void newItems( const KFileItemList& ); void completed() { if( childCount() == 0 ) { setExpandable( false ); repaint(); } } + void reset(); private: void mountDevice(const TQString & device); CollectionSetup *collectionSetup; -- cgit v1.2.1