OSDN Git Service

ProgressDlg: Disable 'Abort' button when command is done.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / ProgressDlg.cpp
index 7c416be..a218184 100644 (file)
@@ -173,6 +173,8 @@ LRESULT CProgressDlg::OnProgressUpdateUI(WPARAM wParam,LPARAM lParam)
                        {\r
                                GetDlgItem(IDCANCEL)->SetWindowText(m_changeAbortButtonOnSuccessTo);\r
                        }\r
+                       else\r
+                               DialogEnableWindow(IDCANCEL, FALSE);\r
                }\r
                else\r
                        DialogEnableWindow(IDCANCEL, FALSE);\r