diff options
author | Jan Grulich <jgrulich@redhat.com> | 2018-06-06 17:22:38 +0200 |
---|---|---|
committer | Jan Grulich <jgrulich@redhat.com> | 2018-06-06 18:05:18 +0000 |
commit | 792298e42d99fe0251608381ea751ab85154d6be (patch) | |
tree | d4ebe98e6e2ef44433e6a4bb7e6ad30148ab63a4 /src/corelib | |
parent | 85a771b89d425950fdd51cf758c52885390ab674 (diff) |
Keep native file dialog updated with current options
When doing calls on native file dialog, we might end up calling an
implementation which will cause crash in case we don't have all options
loaded in the native file dialog. Imagine scenario when you want to save
a file, it sets acceptMode() to QFileDialogOptions::AcceptSave, which is
set to our flatpak file dialog, but not passed through to the native one
loaded inside. Then method calls like selectFile() might crash, like
in case of Gtk3 dialog, because its implementation asks for acceptMode,
but it's not set yet and thus we end up with crash.
Change-Id: I7a4239cb8b46ff6b08e2cfc1dd6abb9d9600aef8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib')
0 files changed, 0 insertions, 0 deletions