diff --git a/src/kits/storage/mime/Database.cpp b/src/kits/storage/mime/Database.cpp index 623d2883ef..24ea09fcd1 100644 --- a/src/kits/storage/mime/Database.cpp +++ b/src/kits/storage/mime/Database.cpp @@ -7,12 +7,12 @@ * Axel Dörfler, axeld@pinc-software.de */ -/*! - \file Database.cpp - Database class implementation -*/ -#include "mime/Database.h" +#include + +#include +#include +#include #include #include @@ -21,13 +21,10 @@ #include #include #include -#include -#include #include #include #include #include -#include #include #include @@ -171,15 +168,14 @@ Database::Delete(const char *type) status = entry.Remove(); - // Notify the installed types database - if (status != B_OK) + if (status == B_OK) { + // Notify the installed types database fInstalledTypes.RemoveType(type); - // Notify the supporting apps database - if (status != B_OK) + // Notify the supporting apps database fSupportingApps.DeleteSupportedTypes(type, true); - // Notify the monitor service - if (status != B_OK) + // Notify the monitor service _SendDeleteNotification(type); + } return status; }