https://bugs.documentfoundation.org/show_bug.cgi?id=91043

--- Comment #18 from Cor Nouws <c...@nouenoff.nl> ---
(In reply to Commit Notification from comment #17)

> Affected users are encouraged to test the fix and report feedback.

Thanks - fixed the problem!

(In reply to Michael Meeks from comment #15)

> So - the fix is simple enough; although - I've not fully thought through
> whether this is really meaningful; I assume you're creating this with UNO
> and not populating the filter list somehow (?) =)

Heh ;) The simple version of what is used to populate the dialog:

 = = 
        sFilePickerArgs =
Array(com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION_PASSWORD
)

With oFilePickerDlg
        .Initialize ( sFilePickerArgs() )
        Select Case PsDocType
                .AppendFilter( "OpenDocument Text (.odt)", "*.odt" )
                .AppendFilter( "OpenDocument Drawing (.odg)", "*.odg" )
                .SetCurrentFilter( "OpenDocument Text (.odt)" )
.SetValue(com.sun.star.ui.dialogs.
ExtendedFilePickerElementIds.CHECKBOX_AUTOEXTENSION, 0, true)   
                .SetValue(com.sun.star.ui.dialogs.
ExtendedFilePickerElementIds.CHECKBOX_PASSWORD, 0, false)
End With

        If oFilePickerDlg.execute() > 0 Then
                sFilesPicked() = oFilePickerDlg.getFiles()
                GetNameUsingFilePicker = sFilesPicked(0)
        End If

 = =

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to