Changeset 11072:0c1237ec0883 in orange


Ignore:
Timestamp:
01/10/13 09:49:44 (16 months ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

addons dialog bugfix: it used to crash on uninitialized add-ons list if there was already an add-on installed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/orngDlgs.py

    r11071 r11072  
    979979            addon = self.getAddOnFromItem(item) 
    980980        if addon: 
    981             self.lblDescription.setText(addon.summary.strip() +"\n"+ addon.description.strip()) 
    982             self.lblVerAvailValue.setText(addon.available_version) 
    983  
    984             self.lblVerInstalledValue.setText(addon.installed_version if addon.installed_version else "-") #TODO Tell whether it's a system-wide installation 
     981            self.lblDescription.setText((addon.summary.strip() or "") +"\n"+ (addon.description.strip() or "")) 
     982            self.lblVerAvailValue.setText(addon.available_version or "") 
     983 
     984            self.lblVerInstalledValue.setText(addon.installed_version or "-") #TODO Tell whether it's a system-wide installation 
    985985            self.upgradeButton.setVisible(bool(addon.installed_version and addon.installed_version!=addon.available_version) and addon.name not in self.to_upgrade) #TODO Disable if it's a system-wide installation 
    986986            self.donotUpgradeButton.setVisible(addon.name in self.to_upgrade) 
Note: See TracChangeset for help on using the changeset viewer.