summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index f5d1592..fe99c93 100644
--- a/src/main.c
+++ b/src/main.c
@@ -149,8 +149,8 @@ int main(int argc, char **argv)
filename = get_string_config_value(config, MPT_LAST_PROJECT);
- if (filename == NULL) project = g_study_project_new();
- else project = g_study_project_open(filename);
+ if (filename == NULL) project = g_study_project_new(G_OBJECT(editor));
+ else project = g_study_project_open(G_OBJECT(editor), filename);
set_current_project(project);