Ignore:
Timestamp:
11/16/12 09:16:04 (17 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Make add-on names case-insensitive; windows likes to have them all lowercase after installation. Hopefully fixes #1242.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngDlgs.py

    r11026 r11037  
    10201020            item = QListWidgetItem() 
    10211021            self.lst.addItem(item) 
    1022             item.setText(name) 
     1022            item.setText(ao.name) 
    10231023            item.setCheckState(Qt.Checked if ao.installed_version and not name in to_remove or name in to_install else Qt.Unchecked) 
    10241024            item.setFlags(Qt.ItemIsUserCheckable | Qt.ItemIsSelectable | Qt.ItemIsEnabled) 
     
    10551055        addons = {} 
    10561056        for name in Orange.utils.addons.search_index(self.searchStr): 
    1057             addons[name] = Orange.utils.addons.addons[name] 
     1057            addons[name.lower()] = Orange.utils.addons.addons[name.lower()] 
    10581058        self.addAddOnsToTree(addons, selected = selected_addon, to_install=to_install, to_remove=to_remove) 
    10591059        self.refreshInfoPane() 
Note: See TracChangeset for help on using the changeset viewer.