summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index a0c53a6ee..6b8e52c45 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -148,12 +148,13 @@ SPDesktop* sp_file_new_default()
/**
* Perform document closures preceding an exit()
*/
-void
-sp_file_exit()
+void sp_file_exit()
{
if (SP_ACTIVE_DESKTOP == nullptr) {
// We must be in console mode
- Gtk::Main::quit();
+ auto app = Gio::Application::get_default();
+ g_assert(app);
+ app->quit();
} else {
sp_ui_close_all();
// no need to call inkscape_exit here; last document being closed will take care of that
@@ -161,7 +162,6 @@ sp_file_exit()
}
-
/**
* Handle prompting user for "do you want to revert"? Revert on "OK"
*/