OSDN Git Service

BinaryCompare: Fix an issue where window titles may not be updated
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 17 Jul 2021 07:05:01 +0000 (16:05 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sat, 17 Jul 2021 07:05:01 +0000 (16:05 +0900)
Src/HexMergeDoc.cpp

index b64c4b4..2c983a3 100644 (file)
@@ -647,6 +647,8 @@ void CHexMergeDoc::SetTitle(LPCTSTR lpszTitle)
 {
        String sTitle = (lpszTitle != nullptr) ? lpszTitle : CMergeFrameCommon::GetTitleString(m_filePaths, m_strDesc, &m_infoUnpacker, nullptr);
        CDocument::SetTitle(sTitle.c_str());
+       if (auto* pParentFrame = GetParentFrame())
+               pParentFrame->SetWindowText(sTitle.c_str());
 }
 
 /**