Ticket #2361: ShowConnectedServerInTitle.patch
File ShowConnectedServerInTitle.patch, 1.0 KB (added by , 14 years ago) |
---|
-
FileZilla
1209 1209 1210 1210 STRINGTABLE 1211 1211 BEGIN 1212 IDR_MAINFRAME "FileZilla server"1212 IDR_MAINFRAME "FileZilla Server" 1213 1213 END 1214 1214 1215 1215 STRINGTABLE -
MainFrm.cpp
1116 1116 delete m_pAdminSocket; 1117 1117 m_pAdminSocket = NULL; 1118 1118 SetIcon(); 1119 1120 CString title; 1121 title.LoadString(IDR_MAINFRAME); 1122 SetWindowText(title + _T(" (disconnected)")); 1119 1123 } 1120 1124 m_nEdit = 0; 1121 1125 … … 1288 1292 void CMainFrame::OnAdminInterfaceConnected() 1289 1293 { 1290 1294 m_nReconnectCount = 0; 1295 1296 CString title; 1297 title.LoadString(IDR_MAINFRAME); 1298 CString ip; 1299 UINT port; 1300 if (m_pAdminSocket->GetPeerName(ip, port)) 1301 { 1302 SetWindowText(title + _T(" (") + ip + _T(")")); 1303 } 1291 1304 } 1292 1305 1293 1306 void CMainFrame::OnAdminInterfaceClosed()