Skip to content
  • Sebastian Geiger's avatar
    [GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when... · afc7466d
    Sebastian Geiger authored and Federico Mena Quintero's avatar Federico Mena Quintero committed
    [GtkFileChooserButton] bgo#645065 - Restore the previously-selected file when the button's GtkFileChooserDialog is canceled
    
    The file chooser is asynchronous, so doing 'select_file (old_file)' and subsequently querying
    the file for updating the labels is not going to work.  However, the underlying file chooser
    will emit 'selection-changed' as appropriate when it finishes restoring the old file.  So,
    we only need to update the labels when the file chooser dialog is confirmed, not cancelled.
    afc7466d