From 30adf6b386c8dd2b0062647d2030d0d80dda70ad Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Fri, 30 Sep 2011 17:02:45 +0200 Subject: [PATCH] update title Signed-off-by: Sven Strickroth --- src/TortoiseProc/ChangedDlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TortoiseProc/ChangedDlg.cpp b/src/TortoiseProc/ChangedDlg.cpp index 5cb77dea9..e52ac1aca 100644 --- a/src/TortoiseProc/ChangedDlg.cpp +++ b/src/TortoiseProc/ChangedDlg.cpp @@ -29,6 +29,7 @@ #include "GitStatusListCtrl.h" #include "CommonResource.h" +#include "AppUtils.h" IMPLEMENT_DYNAMIC(CChangedDlg, CResizableStandAloneDialog) CChangedDlg::CChangedDlg(CWnd* pParent /*=NULL*/) @@ -161,9 +162,9 @@ UINT CChangedDlg::ChangedStatusThread() CTGitPath commonDir = m_FileListCtrl.GetCommonDirectory(false); bool bSingleFile = ((m_pathList.GetCount()==1)&&(!m_pathList[0].IsEmpty())&&(!m_pathList[0].IsDirectory())); if (bSingleFile) - SetWindowText(m_sTitle + _T(" - ") + m_pathList[0].GetWinPathString()); + CAppUtils::SetWindowTitle(m_hWnd, m_pathList[0].GetWinPathString(), m_sTitle); else - SetWindowText(m_sTitle + _T(" - ") + commonDir.GetWinPathString()); + CAppUtils::SetWindowTitle(m_hWnd, commonDir.GetWinPathString(), m_sTitle); SetDlgItemText(IDOK, CString(MAKEINTRESOURCE(IDS_MSGBOX_OK))); DialogEnableWindow(IDC_REFRESH, TRUE); -- 2.11.4.GIT