From aa8265a5bec64738d07690615f300ded6e2af29f Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Sun, 7 May 2006 17:53:13 +0000 Subject: [PATCH] Fixed copy'n'paste error. It caused update_mime_info() to remove the signature of an object file, if the file's resources didn't specify supported types. Both under Haiku itself and for the Linux build. This finally closes bug 170 (AboutHaiku not being startable from Deskbar when built under Linux). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17354 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/build/libbe/storage/mime/UpdateMimeInfoThread.cpp | 2 +- src/kits/storage/mime/UpdateMimeInfoThread.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build/libbe/storage/mime/UpdateMimeInfoThread.cpp b/src/build/libbe/storage/mime/UpdateMimeInfoThread.cpp index a4a69e714b..3c409de92b 100644 --- a/src/build/libbe/storage/mime/UpdateMimeInfoThread.cpp +++ b/src/build/libbe/storage/mime/UpdateMimeInfoThread.cpp @@ -147,7 +147,7 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir) err = appFileInfoWrite.SetSupportedTypes(&supportedTypes); hasSupportedTypes = true; } else if (err == B_ENTRY_NOT_FOUND) - err = appFileInfoWrite.SetSignature(NULL); + err = appFileInfoWrite.SetSupportedTypes(NULL); if (err != B_OK) return err; diff --git a/src/kits/storage/mime/UpdateMimeInfoThread.cpp b/src/kits/storage/mime/UpdateMimeInfoThread.cpp index a4a69e714b..3c409de92b 100644 --- a/src/kits/storage/mime/UpdateMimeInfoThread.cpp +++ b/src/kits/storage/mime/UpdateMimeInfoThread.cpp @@ -147,7 +147,7 @@ UpdateMimeInfoThread::DoMimeUpdate(const entry_ref *entry, bool *entryIsDir) err = appFileInfoWrite.SetSupportedTypes(&supportedTypes); hasSupportedTypes = true; } else if (err == B_ENTRY_NOT_FOUND) - err = appFileInfoWrite.SetSignature(NULL); + err = appFileInfoWrite.SetSupportedTypes(NULL); if (err != B_OK) return err;