Ticket #3638: 3638.diff

File 3638.diff, 533 bytes (added by maxime.simon, 13 years ago)

An extension appears only once in the list.

  • src/preferences/filetypes/ExtensionWindow.cpp

     
    5756        for (int32 j = list.CountItems(); j-- > 0;) {
    5857            if ((removeExtension && !strcmp(removeExtension, extension))
    5958                || !strcmp((const char*)list.ItemAt(j), extension)) {
    60                 // remove this item
    61                 continue;
     59                newList.RemoveItem(j);
    6260            }
    6361        }
    6462