Opened 15 years ago

Closed 15 years ago

#3638 closed enhancement (fixed)

[preferences/fileTypes] extensions can be the same one(easy)

Reported by: chico Owned by: axeld
Priority: normal Milestone: R1
Component: Preferences/FileTypes Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

  1. open preferences/fileTypes.
  2. choose application -> Be application.
  3. click add button in File Recognition.
  4. input "exe" and click add button in popup window.
  5. do step 4 again.
  6. then choose another application : Be boot
  7. do step 3 and 4.

so there are two ".exe" in Be application extensions, and one in Be boot. Suggestion: May we have more than two kinds of extensions are the same? Should the same extension show more than twice in one kind of file extension?

Attachments (2)

3exe extensions.png (190.3 KB ) - added by chico 15 years ago.
3638.diff (533 bytes ) - added by maxime.simon 15 years ago.
An extension appears only once in the list.

Download all attachments as: .zip

Change History (4)

by chico, 15 years ago

Attachment: 3exe extensions.png added

comment:1 by maxime.simon, 15 years ago

An extension can be associated to more than one application at the same time because, according to the BeBook: "A given extension can be associated with more than one MIME type."

by maxime.simon, 15 years ago

Attachment: 3638.diff added

An extension appears only once in the list.

comment:2 by stippi, 15 years ago

Resolution: fixed
Status: newclosed

Thanks for the patch. The patch itself was in the right direction, but there were some problems with it. Mainly it used the wrong list index, so it would have only removed one duplicate successfully. Also, there were some other problems with the existing code, which we fixed in hrev30040.

Note: See TracTickets for help on using tickets.