зеркало из https://github.com/mozilla/gecko-dev.git
title string was stored in the open/save dialog "message" field, instead of the title. moving. bug 59888 r=hyatt,pchen
This commit is contained in:
Родитель
afcb95fa56
Коммит
4e02ab8830
|
@ -293,7 +293,7 @@ nsFilePicker::GetLocalFile(Str255 & inTitle, /* filter list here later */ FSSpec
|
|||
dialogOptions.dialogOptionFlags |= kNavDontAutoTranslate;
|
||||
dialogOptions.dialogOptionFlags |= kNavDontAddTranslateItems;
|
||||
dialogOptions.dialogOptionFlags ^= kNavAllowMultipleFiles;
|
||||
::BlockMoveData(inTitle, dialogOptions.message, *inTitle + 1);
|
||||
::BlockMoveData(inTitle, dialogOptions.windowTitle, *inTitle + 1);
|
||||
|
||||
// sets up the |mTypeLists| array so the filter proc can use it
|
||||
MapFilterToFileTypes();
|
||||
|
@ -366,7 +366,7 @@ nsFilePicker::GetLocalFolder(Str255 & inTitle, FSSpec* outSpec)
|
|||
dialogOptions.dialogOptionFlags |= kNavDontAutoTranslate;
|
||||
dialogOptions.dialogOptionFlags |= kNavDontAddTranslateItems;
|
||||
dialogOptions.dialogOptionFlags ^= kNavAllowMultipleFiles;
|
||||
::BlockMoveData(inTitle, dialogOptions.message, *inTitle + 1);
|
||||
::BlockMoveData(inTitle, dialogOptions.windowTitle, *inTitle + 1);
|
||||
|
||||
// Display the get file dialog
|
||||
nsWatchTask::GetTask().Suspend();
|
||||
|
@ -424,7 +424,7 @@ nsFilePicker::PutLocalFile(Str255 & inTitle, Str255 & inDefaultName, FSSpec* out
|
|||
dialogOptions.dialogOptionFlags |= kNavDontAutoTranslate;
|
||||
dialogOptions.dialogOptionFlags |= kNavDontAddTranslateItems;
|
||||
dialogOptions.dialogOptionFlags ^= kNavAllowMultipleFiles;
|
||||
::BlockMoveData(inTitle, dialogOptions.message, *inTitle + 1);
|
||||
::BlockMoveData(inTitle, dialogOptions.windowTitle, *inTitle + 1);
|
||||
::BlockMoveData(inDefaultName, dialogOptions.savedFileName, *inDefaultName + 1);
|
||||
|
||||
// Display the get file dialog
|
||||
|
|
Загрузка…
Ссылка в новой задаче