summaryrefslogtreecommitdiff
path: root/src/gui/editor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-04-21 11:05:24 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-04-21 11:05:24 (GMT)
commit315146a49b5570294ca20beca720c4e3f74a86bd (patch)
tree7befa35e60c411e0d7639034516d2f9e473d331e /src/gui/editor.c
parentd36b8a3939443512c3afb840b4a81026a57582e7 (diff)
Handled projects from the command line.
Diffstat (limited to 'src/gui/editor.c')
-rw-r--r--src/gui/editor.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c
index 11c7f06..7047f32 100644
--- a/src/gui/editor.c
+++ b/src/gui/editor.c
@@ -481,7 +481,10 @@ static void on_destroy_editor(GtkWidget *widget, GObject *ref)
on_focus_out(widget, NULL, ref);
- gtk_main_quit();
+
+ /* Si la boucle principale est bien lancée, on en sort ! */
+ if (gtk_main_level() > 0)
+ gtk_main_quit();
}