From ff163a8803ccc7c45b22b49c58d15628bd83d413 Mon Sep 17 00:00:00 2001
From: Philippe Saint-Pierre <stpere@gmail.com>
Date: Thu, 9 Aug 2012 01:25:50 -0400
Subject: [PATCH] FileTypes preflet: save HVIF icons as attributes only

Previously, changing a file's icon was creating both an attribute
and a ressource, now it only saves it as an attribute
i.e. don't change the file content.
---
 src/preferences/filetypes/IconView.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/preferences/filetypes/IconView.cpp b/src/preferences/filetypes/IconView.cpp
index c694ab3041..742508d998 100644
--- a/src/preferences/filetypes/IconView.cpp
+++ b/src/preferences/filetypes/IconView.cpp
@@ -1235,6 +1235,7 @@ IconView::_SetIcon(BBitmap* large, BBitmap* mini, const uint8* data,
 		BFile file(&fRef, B_READ_WRITE);
 
 		BAppFileInfo info(&file);
+		info.SetInfoLocation(B_USE_ATTRIBUTES);
 		if (info.InitCheck() == B_OK) {
 			if (large != NULL || force)
 				info.SetIconForType(fType.Type(), large, B_LARGE_ICON);