DLR-AE / CampbellViewer

Unified plotting tool for Campbell diagrams, processing results of wind turbine simulation tools HAWCStab2 and Bladed
Apache License 2.0
2 stars 1 forks source link

Automatically add .nc extension when saving database #24

Closed hendrikverdonck closed 2 years ago

hendrikverdonck commented 2 years ago

setDefaultSuffix seems the method I'm looking for, but does not seem to work yet

hendrikverdonck commented 2 years ago

As explained here https://stackoverflow.com/questions/29835413/cant-add-extension-to-file-in-qfiledialog, setDefaultSuffix is a static function. All proposed solutions are a bit cumbersome. I chose to just manually check if the filename ends on .nc and correct it if necessary.