mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +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)
|
QtFileDialog.setFileMode(QFileDialogExistingFile)
|
||||||
else
|
else
|
||||||
QtFileDialog.setFileMode(QFileDialogAnyFile);
|
QtFileDialog.setFileMode(QFileDialogAnyFile);
|
||||||
|
|
||||||
|
if AFileDialog.FileName <> '' then
|
||||||
|
begin
|
||||||
|
ATitle := GetUTF8String(AFileDialog.FileName);
|
||||||
|
QFileDialog_selectFile(QFileDialogH(QtFileDialog.Widget), @ATitle);
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class function TQtWSFileDialog.CreateHandle(const ACommonDialog: TCommonDialog): THandle;
|
class function TQtWSFileDialog.CreateHandle(const ACommonDialog: TCommonDialog): THandle;
|
||||||
|
Loading…
Reference in New Issue
Block a user