Commit 107d1871 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Qt,Qt5: fixed action of TSavePictureDialog. issue #32540

git-svn-id: trunk@60861 -
parent 58bf52db
......@@ -448,10 +448,10 @@ begin
{------------------------------------------------------------------------------
Code to call the dialog
------------------------------------------------------------------------------}
if FileDialog is TSaveDialog then
if (FileDialog is TSaveDialog) or (FileDialog is TSavePictureDialog) then
QtFileDialog.setAcceptMode(QFileDialogAcceptSave)
else
if FileDialog is TOpenDialog then
if (FileDialog is TOpenDialog) or (FileDialog is TOpenPictureDialog) then
QtFileDialog.setAcceptMode(QFileDialogAcceptOpen)
else
if ACommonDialog is TSelectDirectoryDialog then
......
......@@ -444,10 +444,10 @@ begin
{------------------------------------------------------------------------------
Code to call the dialog
------------------------------------------------------------------------------}
if FileDialog is TSaveDialog then
if (FileDialog is TSaveDialog) or (FileDialog is TSavePictureDialog) then
QtFileDialog.setAcceptMode(QFileDialogAcceptSave)
else
if FileDialog is TOpenDialog then
if (FileDialog is TOpenDialog) or (FileDialog is TOpenPictureDialog) then
QtFileDialog.setAcceptMode(QFileDialogAcceptOpen)
else
if ACommonDialog is TSelectDirectoryDialog then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment