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.
This commit is contained in:
Augustin Cavalier 2015-07-23 11:03:40 -04:00
parent 0267bc5f22
commit f3dd3a96c8
1 changed files with 4 additions and 0 deletions

View File

@ -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) {