cocoa: filter preselection on dialog openning. #32952

git-svn-id: trunk@56995 -
This commit is contained in:
dmitry 2018-01-06 23:03:57 +00:00
parent 9327c79d22
commit 76df6066ac

View File

@ -209,6 +209,8 @@ var
lFilter.setDialogFilter(lFilter.lastSelectedItemIndex);
lFilter.sizeToFit;
lFilter.setAutoresizingMask(NSViewWidthSizable);
if FileDialog.FilterIndex>=0 then
lFilter.selectItemAtIndex(FileDialog.FilterIndex);
// Trying to put controls into the center of the Acc-view
// Label must fit in full. Whatever is left is for filter