OSDN Git Service

Forgot to remove the event listener for DiffThread
authorsdottaka <none@none>
Sun, 9 Dec 2012 11:31:41 +0000 (20:31 +0900)
committersdottaka <none@none>
Sun, 9 Dec 2012 11:31:41 +0000 (20:31 +0900)
Src/DirDoc.cpp

index d2ce685..ef4fc56 100644 (file)
@@ -391,6 +391,7 @@ void CDirDoc::Rescan()
 
        // Folder names to compare are in the compare context
        m_diffThread.SetContext(m_pCtxt.get());
+       m_diffThread.RemoveListener(this, &CDirDoc::DiffThreadCallback);
        m_diffThread.AddListener(this, &CDirDoc::DiffThreadCallback);
        m_diffThread.SetCompareSelected(!!m_bMarkedRescan);
        m_diffThread.CompareDirectories();