File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,15 @@ CString GetTabText (HWND hwnd)
107
107
{
108
108
CChildFrame * pWorldFrame = (CChildFrame *) pWnd;
109
109
CMUSHclientDoc * pDoc = pWorldFrame->m_pDoc ;
110
- strName = pDoc->m_mush_name ;
111
- if (pDoc->m_new_lines && !pDoc->m_bDoNotShowOutstandingLines )
112
- strName += CFormat (" (%i)" , pDoc->m_new_lines );
113
-
110
+ // custom title?
111
+ if (pDoc->m_strWindowTitle .IsEmpty ())
112
+ {
113
+ strName = pDoc->m_mush_name ;
114
+ if (pDoc->m_new_lines && !pDoc->m_bDoNotShowOutstandingLines )
115
+ strName += CFormat (" (%i)" , pDoc->m_new_lines );
116
+ }
117
+ else
118
+ strName = pDoc->m_strWindowTitle ;
114
119
}
115
120
else if (pWnd->IsKindOf (RUNTIME_CLASS (CTextChildFrame)))
116
121
{
@@ -122,6 +127,7 @@ CString GetTabText (HWND hwnd)
122
127
strName += " *" ;
123
128
}
124
129
130
+ strName.Replace (" &" , " &&" );
125
131
return strName;
126
132
}
127
133
You can’t perform that action at this time.
0 commit comments