Ticket #1524: filezilla3_title_show_server.patch

File filezilla3_title_show_server.patch, 856 bytes (added by tommywu, 17 years ago)

show server information in window title

  • src/interface/Mainfrm.cpp

    diff -Nur Filezilla3/src/interface/Mainfrm.cpp Filezilla3.patch/src/interface/Mainfrm.cpp
    old new  
    911911        return;
    912912    }
    913913
     914    SetLabel(_T("FileZilla"));
     915
    914916    CServer server;
    915917    event.Enable(COptions::Get()->GetLastServer(server));
    916918}
     
    930932            return;
    931933    }
    932934
     935    SetLabel(_T("FileZilla - ") + server.FormatServer());
     936
    933937    CServerPath path;
    934938    path.SetSafePath(COptions::Get()->GetOption(OPTION_LASTSERVERPATH));
    935939    m_pState->Connect(server, false, path);
     
    14551459        if (!CLoginManager::Get().GetPassword(pData->m_server, false, pData->m_name))
    14561460            return;
    14571461    }
     1462
     1463    SetLabel(_T("FileZilla - ") + pData->m_server.FormatServer());
    14581464
    14591465    m_pState->Connect(pData->m_server, true, pData->m_remoteDir);
    14601466