Hi,

2014/1/20 Johannes Lorenz <johanne...@mailueberfall.de>

> Thanks for the test song. I tried my code, and it already worked
> correctly. However, I had to assign the values for the new gui elements
> correctly before exporting: The abs value was false (should be true)
>

Ah, I missed that one.


> and the multiplicator was 0 (instead of 1.0). I do not get how models are
> loaded if they are not found in the save file. My idea was to assign
> default values to the models: As you can see in git's diffs, I did
> something like this:
>

The default values are set at model creation. I agree that those should be
used as well when no data is available when loading settings. I propose to
modify AutomatableModel::loadSettings() so that before line 172 it checks
whether the requested attribute exists at all and if not, it calls reset()
(which reverts back to default value). Do you want to do that or shall I do
it later today?

Toby
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
LMMS-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lmms-devel

Reply via email to