diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -418,18 +418,21 @@ static gboolean load_last_project(GGenConfig *cfg) static int open_binaries(char **files, int count) { int result; /* Bilan à retourner */ + GStudyProject *project; /* Projet courant à compléter */ int i; /* Boucle de parcours */ GBinContent *content; /* Contenu binaire à charger */ result = EXIT_SUCCESS; + project = get_current_project(); + for (i = 0; i < count && result == EXIT_SUCCESS; i++) { content = g_file_content_new(files[i]); if (content != NULL) { - qck_study_new_content(content, PCS_ROOT); + g_study_project_discover_binary_content(project, content); g_object_unref(G_OBJECT(content)); } @@ -438,6 +441,8 @@ static int open_binaries(char **files, int count) } + g_object_unref(G_OBJECT(project)); + return result; } |