OSDN Git Service

Show OK on cancel button in log when used standalone
authorColin Law <colin@clanlaw.org.uk>
Tue, 10 Feb 2009 20:37:31 +0000 (20:37 +0000)
committerFrank Li <lznuaa@gmail.com>
Tue, 10 Feb 2009 23:37:31 +0000 (07:37 +0800)
I believe that it is not necessary to change text back to cancel as the loglist
thread is now terminated if necessary in OnCancel whatever its text.

src/TortoiseProc/LogDlg.cpp

index 3525e9a..23994ad 100644 (file)
@@ -352,14 +352,6 @@ LRESULT CLogDlg::OnLogListLoading(WPARAM wParam, LPARAM lParam)
 \r
                this->m_LogList.ShowText(temp, true);\r
 \r
-               // change the text of the close button to "Cancel" since now the thread\r
-               // is running, and simply closing the dialog doesn't work.\r
-               if (!GetDlgItem(IDOK)->IsWindowVisible())\r
-               {\r
-                       temp.LoadString(IDS_MSGBOX_CANCEL);\r
-                       SetDlgItemText(IDCANCEL, temp);\r
-               }\r
-\r
                // We use a progress bar while getting the logs \r
                m_LogProgress.SetRange32(0, 100);\r
                m_LogProgress.SetPos(0);\r