Skip to content

Commit

Permalink
FileTypes: ApplicationTypesWindow: Fix UI updates when the file doesn…
Browse files Browse the repository at this point in the history
…'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.
  • Loading branch information
waddlesplash committed Jul 23, 2015
1 parent 0267bc5 commit f3dd3a9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/preferences/filetypes/ApplicationTypesWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f3dd3a9

Please sign in to comment.