diff --git a/apps/opencs/editor.cpp b/apps/opencs/editor.cpp index 591667ebb7..bef83b8ac7 100644 --- a/apps/opencs/editor.cpp +++ b/apps/opencs/editor.cpp @@ -379,5 +379,5 @@ void CS::Editor::documentAdded (CSMDoc::Document *document) void CS::Editor::lastDocumentDeleted() { - exit (0); + QApplication::quit(); }