From 028edd5bd9d08f5d0dde8af409db56b7a17f1707 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 9 Apr 2017 11:34:55 +0200 Subject: [PATCH] Sporadic crashes when starting rt, fixes #3787 --- rtgui/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/main.cc b/rtgui/main.cc index 155d9f3ba..88dc4ead4 100644 --- a/rtgui/main.cc +++ b/rtgui/main.cc @@ -119,11 +119,11 @@ int main(int argc, char **argv) { setlocale(LC_ALL, ""); setlocale(LC_NUMERIC, "C"); // to set decimal point to "." - gtk_init (&argc, &argv); // use the "--g-fatal-warnings" command line flag to make warnings fatal Glib::init(); // called by Gtk::Main, but this may be important for thread handling, so we call it ourselves now gdk_threads_set_lock_functions(G_CALLBACK(myGdkLockEnter), (G_CALLBACK(myGdkLockLeave))); gdk_threads_init(); + gtk_init (&argc, &argv); // use the "--g-fatal-warnings" command line flag to make warnings fatal Gio::init (); //mainThread = Glib::Threads::Thread::self();