News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

New scripts through plugin installation

Started by yop, August 05, 2007, 01:15:07 PM

Previous topic - Next topic

mandrav

Quote from: yop on October 04, 2007, 10:40:36 PM
I 'm on to something. I have this hooked to the project load/unload:

void QtWorkbench::OnProjectLoadingHook(cbProject* project, TiXmlElement* elem, bool loading)

Now when the new project wizard finishes this function get called 3 times and each time it gets called with loading = false  :?. This is why I had the strange behavior all the way. When the project gets loaded the plugin checks if it should handle the project and then when the project closes it writes back (depending on the user requests) if it should handle the specific project. Now since the loading never gets the true value my plugin doesn't get the state that it should handle the project and during the project closing it always writes the false value in the project file. What I would expect:

Wizard finishes -> hook gets called with loading = true and nothing else, just resume the typical handling of an open project.


Ah, thanks for the bug-hunting yop. I 'll have a look.
Be patient!
This bug will be fixed soon...