View Single Post
Old 07-29-2025, 03:21 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,887
Karma: 6120478
Join Date: Nov 2009
Device: many
@DiapDealer,

I just pushed a modified version of that routine plus all the other changes to centralize initialization of QFileDialog::Options into Utility::DlgOptions() all throughout the Sigil code.

I added in the env var override but we could remove it easily enough if we do not decide to go that way.

I do think with this new approach everything is centralized making it easier to make global platform changes later and it lessens the need for ifdefs everywhere throughoput the code that invoked a QFileDialog while adding just a few to Utility::DlgOptions(). It really removed a lot of Q_OS_MAC ifdefs.

Note: Utility::DlgOptions() has an added parameter special_case (defaults to an empty string) that should be flexible enough to allow us to make exceptions in any place we will need to in the future. I use it now just to match exactly what we had been doing before this change.

Please give it a look see and let me know if you want me to revert any or all of it.

Hope this helps!
KevinH is offline   Reply With Quote