Author Topic: New scripts through plugin installation  (Read 14530 times)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: New scripts through plugin installation
« Reply #15 on: October 05, 2007, 09:46:21 am »
I 'm on to something. I have this hooked to the project load/unload:

Code
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...