diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-14 10:20:55 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-12-14 10:20:55 -0700 |
commit | ffc7bd122e5359d1ffe94ef6a8cae4dc9a7b29bf (patch) | |
tree | a9e160a69124bf3ad36342b01f07ccc4147e693d /gtk2_ardour/ardour_ui_startup.cc | |
parent | ab7b5c6089de7d13a49c92efbf052a4d79c6cc47 (diff) |
emit Application::ready() at a suitable time during startup
This causes macOS to deliver an "openFile" event which allows us
to function correctly when started by a click on a .ardour file
Diffstat (limited to 'gtk2_ardour/ardour_ui_startup.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_startup.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc index a56b1a38e2..f172305052 100644 --- a/gtk2_ardour/ardour_ui_startup.cc +++ b/gtk2_ardour/ardour_ui_startup.cc @@ -477,10 +477,14 @@ ARDOUR_UI::sfsm_response (StartupFSM::Result r) int ARDOUR_UI::starting () { + Application* app = Application::instance(); + if (ARDOUR_COMMAND_LINE::check_announcements) { check_announcements (); } + app->ready (); + /* we need to create this early because it may need to set the * audio backend end up. */ |