| Summary: | Save Default Update Type in Data Wizard | ||
|---|---|---|---|
| Product: | [Applications] kst | Reporter: | Ben Lewis <benlewis003> |
| Component: | general | Assignee: | kst |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | nicolas.brisset |
| Priority: | NOR | ||
| Version First Reported In: | 2.0.7 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | 2.0.8 | |
| Sentry Crash Report: | |||
|
Description
Ben Lewis
2014-07-19 03:37:27 UTC
I gave it a quick try, by adding:
dialogDefaults().setValue("wizard/updateType", _pageDataSource->updateType());
to datawizard.cpp (DataWizard::finished())
but I'm not really sure where to add the corresponding call to restore the last used value. It should certainly go to DataWizardPageDataSource::updateUpdateBox(), but there I seem to hit an issue, which is that the call to _dataSource->updateType() seems to default to returning 0, and I don't see how to distinguish between a 0 read from stored settings and a 0 as default value. The defaults are managed by NamedParameter, where I don't see an easy way to specify reading that value from the settings.
Any help would be nice, maybe I'm on a completely wrong way...
Fixed in 2.0.8 (see commit https://github.com/Kst-plot/kst/commit/e6abccf22f49d4941e5f6021ee261d54a2a605a1) |