From 2e5142464dec77d4e7575dd648a0f219a991d6a7 Mon Sep 17 00:00:00 2001 From: Norm Pierce Date: Sat, 22 Sep 2012 11:53:32 +0100 Subject: [PATCH] Remove rule that zero-length files are always text/plain Let the xdgmime library decide. --- ROX-Filer/src/diritem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ROX-Filer/src/diritem.c b/ROX-Filer/src/diritem.c index 7a24391d..1503e425 100644 --- a/ROX-Filer/src/diritem.c +++ b/ROX-Filer/src/diritem.c @@ -153,9 +153,7 @@ void diritem_restat(const guchar *path, DirItem *item, struct stat *parent) } else if (item->base_type == TYPE_FILE) { - if (item->size == 0) - item->mime_type = text_plain; - else if (item->flags & ITEM_FLAG_SYMLINK) + if (item->flags & ITEM_FLAG_SYMLINK) { guchar *link_path; link_path = pathdup(path); -- 2.11.4.GIT