CppTools: Fix snapshot in case another project is opened

When a second project was opened the snapshot was reset. That resulted
in all kinds of problems since from then on the code model effectively
was not aware of the files of the first project.

The regression was introduced by commit a0d6df7b.

Change-Id: I1ccc9de68177205b49a4ba8ead2bc8abe4592b32
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Nikolai Kosjar
2013-06-28 11:26:02 +02:00
parent 377078ea27
commit 1fad00f999
9 changed files with 157 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
// Copyright header
#ifndef FOO_H
#define FOO_H
class Foo
{
public:
Foo();
};
#endif // FOO_H