Menu

Commit [r293]  Maximize  Restore  History

* Stop the thread before destroying the window

* Use the save() method instead of save(filename)

tortoisesvn 2008-06-18

changed /trunk/src/HiddenWindow.cpp
/trunk/src/HiddenWindow.cpp Diff Switch to side-by-side view
--- a/trunk/src/HiddenWindow.cpp
+++ b/trunk/src/HiddenWindow.cpp
@@ -204,8 +204,7 @@
         break;
 	case COMMITMONITOR_SAVEINFO:
 		{
-			wstring urlfile = CAppUtils::GetAppDataDir() + _T("\\urls");
-			m_UrlInfos.Save(urlfile.c_str());
+			m_UrlInfos.Save();
 			return TRUE;
 		}
 		break;
@@ -312,7 +311,11 @@
 		if (m_hMainDlg)
 			SendMessage(m_hMainDlg, COMMITMONITOR_INFOTEXT, 0, lParam);
 		break;
+	case WM_QUIT:
+		StopThread();
+		break;
 	case WM_DESTROY:
+		StopThread();
 		PostQuitMessage(0);
 		break;
 	case WM_CLOSE:
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.