From e635421dadc248bdfe5d417a55e069b5eb31311f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 16 Feb 2006 20:23:15 +0000 Subject: [PATCH] * Work-around for strange BRoster::FindApp() behaviour is no longer needed. * Fixed wrong height of the signature and path views. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16435 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/filetypes/ApplicationTypesWindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/preferences/filetypes/ApplicationTypesWindow.cpp b/src/preferences/filetypes/ApplicationTypesWindow.cpp index a8155543dc..daff82b5dd 100644 --- a/src/preferences/filetypes/ApplicationTypesWindow.cpp +++ b/src/preferences/filetypes/ApplicationTypesWindow.cpp @@ -120,6 +120,7 @@ ApplicationTypesWindow::ApplicationTypesWindow(BRect frame) box->AddChild(fNameView); innerRect.OffsetBy(0, fNameView->Bounds().Height() + 5.0f); + innerRect.bottom = innerRect.top + height; fSignatureView = new StringView(innerRect, "signature", "Signature:", NULL, B_FOLLOW_LEFT_RIGHT); fSignatureView->SetDivider(labelWidth); @@ -283,9 +284,7 @@ ApplicationTypesWindow::_SetType(BMimeType* type, int32 forceUpdate) } entry_ref ref; - // TODO: disabled because of somewhat broken BRoster::FindApp() behaviour - if (/*(forceUpdate & B_APP_HINT_CHANGED) != 0*/ - forceUpdate == B_EVERYTHING_CHANGED + if ((forceUpdate & B_APP_HINT_CHANGED) != 0 && be_roster->FindApp(fCurrentType.Type(), &ref) == B_OK) { // Set launch message BMessenger tracker("application/x-vnd.Be-TRAK");