mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Qt: qtwsdialogs bugfix for non-native mode, filename should be setted up.
git-svn-id: trunk@19964 -
This commit is contained in:
parent
c286608aa2
commit
cfb3d7416e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user