From: Werner S. <ws...@se...> - 2004-03-14 21:38:41
|
On Sunday 14 March 2004 18:38, Mathias Lundgren wrote: > Ayh! > > I noticed that when loading a project on startup, a lot of graphical > stuff doesn't get initialized with the values from the project. This > appears to be because of a song->blockSignals(true). I suspect there are > lots of reasons for this on startup, but is it really necessary to block > the signals even during loadProjectFile()? To just move that call to the > line before loadProject seems to work OK for me (and signals are > apparently not blocked when loading a project _after_ startup, since > things are initialized just fine then). I didn't want to make a commit > before asking first though... > > /Mathias i blocked the signals in hope of eliminatig uneccessary redundant updates during startup (which happens at least with the mixer). The idea was to only update all things at once after loading a project file. I only tested it with the mixer were it works. If it has problems, please remove the blockSignals() call. Werner |