summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smdirwatcher.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 9883a85..2421b1e 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -112,7 +112,8 @@ void SmDataColletor::run(){
QPair<QString, SmDirWatcher::DWEvent> cur = mDataQueue->dequeue();
if(cur.second == SmDirWatcher::Populate){
SmTreeItem *i = populate(cur.first);
- emit population(i);
+ SmTreeItem *copy = new SmTreeItem(*i);
+ emit population(copy);
mSemFree->release();
continue;