Fix icons.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 May 2010 13:33:28 +0000 (13:33 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 24 May 2010 13:33:28 +0000 (13:33 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3808 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BBoardPage.py
wizard/BProjectPresets.py

index 160ff610186bd4a9461d33828ca121979967801c..69a732e515dbb639ca2c4c5f199a796be4884bc0 100644 (file)
@@ -127,7 +127,7 @@ class BBoardPage(BWizardPage):
             item_name = item_data["info"].get("name", item_data["info"]["filename"])
             item_icon = os.path.join(item_data["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE)
             if not os.path.exists(item_icon):
-                item_icon = ":/images/default_board_icon.png"
+                item_icon = const.PREDEFINED_BOARD_DEFAULT_ICON
             item = QListWidgetItem(QIcon(item_icon), item_name)
             item.setData(Qt.UserRole, qvariant_converter.convertDict(item_data))
             self.pageContent.boardList.addItem(item)
index 18268e67eb023a227eaeb187581ca1dab30825a4..1934c2da821f7d46e78bf9ae85b2c6bea64044e3 100644 (file)
@@ -66,7 +66,7 @@ class BProjectPresetsPage(QWidget):
             item_name = preset["info"].get("name", preset["info"]["filename"])
             item_icon = os.path.join(preset["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE)
             if not os.path.exists(item_icon):
-                item_icon = const.PREDEFINED_BOARD_DEFAULT_ICON
+                item_icon = const.PREDEFINED_BOARD_DEFAULT_PROJECT_ICON
             item_icon = QIcon(item_icon)
             item = QListWidgetItem(item_icon, item_name)
             item.setData(Qt.UserRole, qvariant_converter.convertString(preset["info"]["path"]))