Ticket #5496: out.patch

File out.patch, 2.0 KB (added by Nicholas Welters, 9 years ago)
  • interface/LocalListView.cpp

    diff -Naur New/interface/LocalListView.cpp Old/interface/LocalListView.cpp
    New Old  
    12691269
    12701270void CLocalListView::OnKeyDown(wxKeyEvent& event)
    12711271{
    1272 #ifdef __WXMAC__
    1273 #define CursorModifierKey wxMOD_CMD
    1274 #else
    1275 #define CursorModifierKey wxMOD_ALT
    1276 #endif
    1277 
    12781272    const int code = event.GetKeyCode();
    12791273    if (code == WXK_DELETE)
    12801274    {
     
    12921286        wxCommandEvent tmp;
    12931287        OnMenuRename(tmp);
    12941288    }
    1295     else if (code == WXK_RIGHT && event.GetModifiers() == CursorModifierKey)
    1296     {
    1297         wxListEvent evt;
    1298         evt.m_itemIndex = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED);
    1299         OnItemActivated(evt);
    1300     }
    1301     else if (code == WXK_DOWN && event.GetModifiers() == CursorModifierKey)
    1302     {
    1303         wxCommandEvent cmdEvent;
    1304         OnMenuUpload(cmdEvent);
    1305     }
    13061289    else
    13071290        event.Skip();
    13081291}
     
    20422025    for (std::list<CLocalFileData>::const_iterator data = selected_item_list.begin(); data != selected_item_list.end(); data++)
    20432026    {
    20442027        wxFileName fn(m_dir, data->name);
    2045        
    2046 #ifdef __WXMSW__
    2047         fn.SetExt( fn.GetExt( ).Lower() );
    2048 #endif
    2049        
     2028
    20502029        bool dangerous = false;
    20512030        bool program_exists = false;
    20522031        wxString cmd = pEditHandler->CanOpen(CEditHandler::local, fn.GetFullPath(), dangerous, program_exists);
  • interface/settings/optionspage_filetype.cpp

    diff -Naur New/interface/settings/optionspage_filetype.cpp Old/interface/settings/optionspage_filetype.cpp
    New Old  
    143143void COptionsPageFiletype::OnAdd(wxCommandEvent& event)
    144144{
    145145    wxString ext = GetText(XRCID("ID_EXTENSION"));
    146        
    147146    if (ext == _T(""))
    148147    {
    149148        wxBell();
    150149        return;
    151150    }
    152    
    153 #ifdef __WXMSW__
    154     ext = ext.Lower();
    155 #endif
    156    
     151
    157152    wxListCtrl* pListCtrl = XRCCTRL(*this, "ID_EXTENSIONS", wxListCtrl);
    158153    wxASSERT(pListCtrl);
    159154