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
This commit is contained in:
parent
ae219f104e
commit
aa8265a5be
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user