Author Topic: cbEVT_PROJECT_FILE_ADDED called even if file only exists in the project  (Read 4434 times)

Offline orel

  • Multiple posting newcomer
  • *
  • Posts: 96
Hi developers, i found this problem when testing some functionalities of my SVNInside plugin. I am nearly sure that this wasn't happening a few days ago, but can't remember when!! sorry. But what i am sure is that this event is called even if the file already exists and i found no way to know that information in the data provided by the event itself, but i think this event should be called only in case of an addition, right?

 i would really have liked to figure myself what the problem is, and probably would but i prefer posting here cos you developers will find the problem easier than I.... :D because in CB the code adding files and checking for duplicates is quite tricky! Thank you
windows XP SP2
mingw gcc 3.4.5
svn Code::Blocks and M$ Visual Studio 2005 and .NET to eat!! SVNInside plugin :http://forums.codeblocks.org/index.php/topic,7063.0.html

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: cbEVT_PROJECT_FILE_ADDED called even if file only exists in the project
« Reply #1 on: December 25, 2007, 09:31:59 am »
This event is fired also for each file when the project is opened. If you want to know if that's the case, use ProjectManager::IsLoadingProject()... (or smth like that).
Be patient!
This bug will be fixed soon...