• Noel Grandin's avatar
    fix for fdo#61801 · 3554b365
    Noel Grandin yazdı
    ... "crash on Tools - Options - LibreOffice - Personalization - Select Background Image"
    
    The root cause of this is my conversion of the UNO code to use the
    new-style FilePicker service constructor in commit
    4b51374a
    
    Unfortunately, the new-style service constructor will always call
    initialize(Sequence<Any>), which the old code did not do.
    And initialize does not like being called without any arguments.
    
    The cleanest fix for this is to simply remove the createDefault()
    service constructor method and make all the call sites explicitly
    choose the style of FilePicker dialog they want.
    
    As a bonus, this simplifies some of the call sites.
    
    Change-Id: I75f5e03cff4e39abe22cd9650a079ec78ab636c4
    Reviewed-on: https://gerrit.libreoffice.org/2553Reviewed-by: 's avatarKohei Yoshida <kohei.yoshida@gmail.com>
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    Tested-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    3554b365