Join GitHub today
fix #99626 Preferences obey nativeDialogs setting in .ini #2406
If on linux, Preferences dialogs for setting folders and files will now obey nativeDialog boolean setting from ini.
Note: this commit doesn't change behavior for Windows and OS X, since Qt says getExistingDirectory() and getOpenFileName() do not obey the QFileDialog::DontUseNativeDialog option.
ok. I believe I've updated correctly now: The three getOpenFileName don't have the ShowDirsOnly:
and the rest are getExistingDirectory and do include ShowDirsOnly.
(I apologize...I did indeed read that message "To ensure a native file dialog, ShowDirsOnly must be set." when I was initially making this PR, but I didn't think needed to include that, as I remember trying it out... I think Qt could have written that sentence a bit clearer.)