Skip to content

Commit 04a0bf4

Browse files
committed
Fixed SetTitle to update outstanding lines of unseen text
1 parent 94f68c2 commit 04a0bf4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

MDITabs.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,11 @@ CString GetTabText (HWND hwnd)
109109
CMUSHclientDoc * pDoc = pWorldFrame->m_pDoc;
110110
// custom title?
111111
if (pDoc->m_strWindowTitle.IsEmpty ())
112-
{
113112
strName = pDoc->m_mush_name;
114-
if (pDoc->m_new_lines && !pDoc->m_bDoNotShowOutstandingLines)
115-
strName += CFormat (" (%i)", pDoc->m_new_lines);
116-
}
117113
else
118114
strName = pDoc->m_strWindowTitle;
115+
if (pDoc->m_new_lines && !pDoc->m_bDoNotShowOutstandingLines)
116+
strName += CFormat (" (%i)", pDoc->m_new_lines);
119117
}
120118
else if (pWnd->IsKindOf(RUNTIME_CLASS(CTextChildFrame)))
121119
{

0 commit comments

Comments
 (0)