From f3dd3a96c8376a066ccb6c86478db20aaa8c03cc Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 23 Jul 2015 11:03:40 -0400 Subject: [PATCH] FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn't exist. If the filetype existed but the entry_ref did not, then the path from the previously shown application would be used. This fixes that. --- src/preferences/filetypes/ApplicationTypesWindow.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/preferences/filetypes/ApplicationTypesWindow.cpp b/src/preferences/filetypes/ApplicationTypesWindow.cpp index 424bfd799e..f191ed607f 100644 --- a/src/preferences/filetypes/ApplicationTypesWindow.cpp +++ b/src/preferences/filetypes/ApplicationTypesWindow.cpp @@ -413,6 +413,10 @@ ApplicationTypesWindow::_SetType(BMimeType* type, int32 forceUpdate) fTrackerButton->SetMessage(NULL); appFound = false; } + } else if ((forceUpdate & B_APP_HINT_CHANGED) != 0) { + fLaunchButton->SetMessage(NULL); + fPathView->SetText(NULL); + fTrackerButton->SetMessage(NULL); } if (forceUpdate == B_EVERYTHING_CHANGED) {