* New super types that are added while FileTypes is running are now displayed

correctly (without an icon).
* Fixed the incorrect __HAIKU__ only section #ifdef.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17808 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-06-12 23:36:35 +00:00
parent 5b741ecbfd
commit 139655dd9a

View File

@ -461,6 +461,9 @@ MimeTypeListView::_AddNewType(const char* type)
superItem = FindItem(superType.Type());
item = new MimeTypeItem(mimeType, fShowIcons, fSupertype.Type() != NULL);
if (item->IsSupertypeOnly())
item->ShowIcon(false);
item->SetApplicationMode(isApp);
if (superItem != NULL) {
@ -532,9 +535,8 @@ MimeTypeListView::MessageReceived(BMessage* message)
BMessage addType(kMsgAddType);
addType.AddString("type", type);
#ifdef __HAIKU
BMessageRunner::StartSending(this, &addType, 200000ULL, 1);
if (runner.InitCheck() != B_OK)
#ifdef __HAIKU__
if (BMessageRunner::StartSending(this, &addType, 200000ULL, 1) != B_OK)
_AddNewType(type);
#else
// TODO: free runner again!