Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: orel on December 25, 2007, 04:21:52 am

Title: cbEVT_PROJECT_FILE_ADDED called even if file only exists in the project
Post by: orel on December 25, 2007, 04:21:52 am
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
Title: Re: cbEVT_PROJECT_FILE_ADDED called even if file only exists in the project
Post by: mandrav 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).