Commit ea2c9eef authored by Alex Samorukov's avatar Alex Samorukov

app: do not activate OSX menu if tests are running to prevent crash

(cherry picked from commit 62c52742)
parent 53f0f935
......@@ -611,7 +611,10 @@ gui_restore_after_callback (Gimp *gimp,
if (GTK_IS_MENU_ITEM (menu))
menu = gtk_menu_item_get_submenu (GTK_MENU_ITEM (menu));
gtkosx_application_set_menu_bar (osx_app, GTK_MENU_SHELL (menu));
/* do not activate OSX menu if tests are running */
if (!getenv("GIMP_TESTING_ABS_TOP_SRCDIR"))
gtkosx_application_set_menu_bar (osx_app, GTK_MENU_SHELL (menu));
gtkosx_application_set_use_quartz_accelerators (osx_app, FALSE);
gui_add_to_app_menu (image_ui_manager, osx_app,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment