Qt: qtwsdialogs bugfix for non-native mode, filename should be setted up.

git-svn-id: trunk@19964 -
This commit is contained in:
zeljko 2009-05-14 11:58:22 +00:00
parent c286608aa2
commit cfb3d7416e

View File

@ -303,6 +303,12 @@ begin
QtFileDialog.setFileMode(QFileDialogExistingFile)
else
QtFileDialog.setFileMode(QFileDialogAnyFile);
if AFileDialog.FileName <> '' then
begin
ATitle := GetUTF8String(AFileDialog.FileName);
QFileDialog_selectFile(QFileDialogH(QtFileDialog.Widget), @ATitle);
end;
end;
class function TQtWSFileDialog.CreateHandle(const ACommonDialog: TCommonDialog): THandle;