diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/global.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/global.c b/src/core/global.c index c5f25c1..2185c3a 100644 --- a/src/core/global.c +++ b/src/core/global.c @@ -121,6 +121,10 @@ void set_current_project(GStudyProject *project) GStudyProject *get_current_project(void) { + assert(_project != NULL); + + g_object_ref(G_OBJECT(_project)); + return _project; } |