Showing the changes to interface/src/ImportDialog.cpp (1 of 9 files). Show all
Unified · Split
| @@ -39,7 +39,6 @@ QIcon HiFiIconProvider::icon(QFileIconProvider::IconType type) const { · 38 unmodified lines | |||
| 39 | 39 | ||
| 40 | // types | 40 | // types |
| 41 | // Computer, Desktop, Trashcan, Network, Drive, Folder, File | 41 | // Computer, Desktop, Trashcan, Network, Drive, Folder, File |
| 42 | |||
| 43 | QString typeString; | 42 | QString typeString; |
| 44 | 43 | ||
| 45 | switch (type) { | 44 | switch (type) { |
| @@ -89,11 +88,10 @@ QIcon HiFiIconProvider::icon(const QFileInfo &info) const { · 43 unmodified lines | |||
| 89 | return QIcon("resources/icons/folder.svg"); | 88 | return QIcon("resources/icons/folder.svg"); |
| 90 | } | 89 | } |
| 91 | 90 | ||
| 92 | QFileInfo iconFile("resources/icons/" + ext + ".svg"); | 91 | QFileInfo iconFile("resources/icons/" + iconsMap[ext]); |
| 93 | if (iconFile.exists()) { | 92 | if (iconFile.exists()) { |
| 94 | return QIcon(iconFile.filePath()); | 93 | return QIcon(iconFile.filePath()); |
| 95 | } | 94 | } |
| 96 | |||
| 97 | return QIcon("resources/icons/file.svg"); | 95 | return QIcon("resources/icons/file.svg"); |
| 98 | } | 96 | } |
| 99 | 97 | ||