[Lazarus] Qt5 OpenDialog/SaveDialog file filter ok?

AlexeyT aaa5500 at ya.ru
Thu Oct 31 07:51:07 CET 2019


Sorry, that Filter works ok.

Another question. In qt5/qtwsdialogs.pp we have

   if (AFileDialog is TSaveDialog) and (trim(TmpFilter)='()') then
     Result := ''
   else
     Result := GetUtf8String(TmpFilter);

so that empty dlg.Filter will give empty result Qt filter. Only for 
SaveDialog! Why only for SaveDailog? it is needed for OpenDialog too, 
because result "()" looks bad.

AT



More information about the lazarus mailing list