Fixed issue where all exe files had the same icon
FossilOrigin-Name: 14ddcd158900cd672a4c3d88e8465f7ff88f14d2
This commit is contained in:
@@ -2110,6 +2110,10 @@ const QIcon &MainWindow::getCachedFileIcon(const QFileInfo &finfo)
|
||||
{
|
||||
QString icon_type = iconProvider.type(finfo);
|
||||
|
||||
// Exe files have varying icons, so key on path
|
||||
if(icon_type == "exe File")
|
||||
icon_type = finfo.absoluteFilePath();
|
||||
|
||||
if(!iconCache.contains(icon_type))
|
||||
iconCache.insert(icon_type, iconProvider.icon(finfo));
|
||||
|
||||
|
Reference in New Issue
Block a user